1 19 package org.openbravo.erpCommon.utility; 20 21 public class OBError { 22 private String type = ""; 23 private String title = ""; 24 private String message = ""; 25 private boolean connectionAvailable = true; 26 27 public OBError() { 28 } 29 30 public void setType(String _data) { 31 if (_data==null) _data = ""; 32 this.type = _data; 33 } 34 35 public String getType() { 36 return ((this.type==null)?"Hidden":this.type); 37 } 38 39 public void setTitle(String _data) { 40 if (_data==null) _data = ""; 41 this.title = _data; 42 } 43 44 public String getTitle() { 45 return ((this.title==null)?"":this.title); 46 } 47 48 public void setMessage(String _data) { 49 if (_data==null) _data = ""; 50 this.message = _data; 51 } 52 53 public String getMessage() { 54 return ((this.message==null)?"":this.message); 55 } 56 57 public void setConnectionAvailable(boolean _data) { 58 this.connectionAvailable = _data; 59 } 60 61 public boolean isConnectionAvailable() { 62 return this.connectionAvailable; 63 } 64 } 65 | Popular Tags |