public class BusinessType extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
BusinessType.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BusinessType> |
CREATOR |
static JSONifiable.Creator<BusinessType> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
BusinessType()
Constructs a new empty instance.
|
protected |
BusinessType(boolean noInit)
Constructs a new empty instance.
|
|
BusinessType(BusinessType src)
Constructs a new instance that is a deep copy of the source instance.
|
|
BusinessType(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
BusinessType(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBusinessTypeGroupCode()
Clears the 'businessTypeGroupCode' field, the 'has' method for this field will now return false
|
void |
clearBusinessTypeGroupName()
Clears the 'businessTypeGroupName' field, the 'has' method for this field will now return false
|
void |
clearCode()
Clears the 'code' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
BusinessType |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
BusinessTypeGroupCode |
getBusinessTypeGroupCode() |
String |
getBusinessTypeGroupName()
localized business type group
|
BusinessTypeCode |
getCode() |
protected GenericClient |
getGenericClient() |
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
String |
getName()
Localized business type
|
boolean |
hasBusinessTypeGroupCode()
Checks whether the 'businessTypeGroupCode' field has been set, however the value could be null
|
boolean |
hasBusinessTypeGroupName()
Checks whether the 'businessTypeGroupName' field has been set, however the value could be null
|
boolean |
hasCode()
Checks whether the 'code' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
isNotNullBusinessTypeGroupCode()
Checks whether the 'businessTypeGroupCode' field is set and is not null
|
boolean |
isNotNullBusinessTypeGroupName()
Checks whether the 'businessTypeGroupName' field is set and is not null
|
boolean |
isNotNullCode()
Checks whether the 'code' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
void |
mergeChanges(BusinessType src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
BusinessType |
setBusinessTypeGroupCode(BusinessTypeGroupCode businessTypeGroupCode)
Sets the field 'businessTypeGroupCode'.
|
BusinessType |
setBusinessTypeGroupName(String businessTypeGroupName)
Sets the field 'businessTypeGroupName'.
|
BusinessType |
setCode(BusinessTypeCode code)
Sets the field 'code'.
|
BusinessType |
setName(String name)
Sets the field 'name'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<BusinessType> CREATOR
public static final JSONifiable.Creator<BusinessType> JSON_CREATOR
public BusinessType()
protected BusinessType(boolean noInit)
public BusinessType(String json) throws IllegalArgumentException
IllegalArgumentException
public BusinessType(JSONObject jsonObject)
public BusinessType(BusinessType src)
public BusinessTypeGroupCode getBusinessTypeGroupCode()
public String getBusinessTypeGroupName()
public BusinessTypeCode getCode()
public String getName()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullBusinessTypeGroupCode()
public boolean isNotNullBusinessTypeGroupName()
public boolean isNotNullCode()
public boolean isNotNullName()
public boolean hasBusinessTypeGroupCode()
public boolean hasBusinessTypeGroupName()
public boolean hasCode()
public boolean hasName()
public BusinessType setBusinessTypeGroupCode(BusinessTypeGroupCode businessTypeGroupCode)
public BusinessType setBusinessTypeGroupName(String businessTypeGroupName)
public BusinessType setCode(BusinessTypeCode code)
public BusinessType setName(String name)
public void clearBusinessTypeGroupCode()
public void clearBusinessTypeGroupName()
public void clearCode()
public void clearName()
public boolean containsChanges()
public void resetChangeLog()
public BusinessType copyChanges()
public void mergeChanges(BusinessType src)