Package com.clover.sdk.v3.apps
Class BusinessType
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.apps.BusinessType
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class BusinessType extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BusinessType.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<BusinessType>
CREATOR
static JSONifiable.Creator<BusinessType>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor 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(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearBusinessTypeGroupCode()
Clears the 'businessTypeGroupCode' field, the 'has' method for this field will now return falsevoid
clearBusinessTypeGroupName()
Clears the 'businessTypeGroupName' field, the 'has' method for this field will now return falsevoid
clearCode()
Clears the 'code' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falseboolean
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 groupBusinessTypeCode
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 typeboolean
hasBusinessTypeGroupCode()
Checks whether the 'businessTypeGroupCode' field has been set, however the value could be nullboolean
hasBusinessTypeGroupName()
Checks whether the 'businessTypeGroupName' field has been set, however the value could be nullboolean
hasCode()
Checks whether the 'code' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
isNotNullBusinessTypeGroupCode()
Checks whether the 'businessTypeGroupCode' field is set and is not nullboolean
isNotNullBusinessTypeGroupName()
Checks whether the 'businessTypeGroupName' field is set and is not nullboolean
isNotNullCode()
Checks whether the 'code' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<BusinessType> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<BusinessType> JSON_CREATOR
-
-
Constructor Detail
-
BusinessType
public BusinessType()
Constructs a new empty instance.
-
BusinessType
protected BusinessType(boolean noInit)
Constructs a new empty instance.
-
BusinessType
public BusinessType(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
BusinessType
public 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
public BusinessType(BusinessType src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getBusinessTypeGroupCode
public BusinessTypeGroupCode getBusinessTypeGroupCode()
-
getBusinessTypeGroupName
public String getBusinessTypeGroupName()
localized business type group
-
getCode
public BusinessTypeCode getCode()
-
getName
public String getName()
Localized business type
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullBusinessTypeGroupCode
public boolean isNotNullBusinessTypeGroupCode()
Checks whether the 'businessTypeGroupCode' field is set and is not null
-
isNotNullBusinessTypeGroupName
public boolean isNotNullBusinessTypeGroupName()
Checks whether the 'businessTypeGroupName' field is set and is not null
-
isNotNullCode
public boolean isNotNullCode()
Checks whether the 'code' field is set and is not null
-
isNotNullName
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
-
hasBusinessTypeGroupCode
public boolean hasBusinessTypeGroupCode()
Checks whether the 'businessTypeGroupCode' field has been set, however the value could be null
-
hasBusinessTypeGroupName
public boolean hasBusinessTypeGroupName()
Checks whether the 'businessTypeGroupName' field has been set, however the value could be null
-
hasCode
public boolean hasCode()
Checks whether the 'code' field has been set, however the value could be null
-
hasName
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
-
setBusinessTypeGroupCode
public BusinessType setBusinessTypeGroupCode(BusinessTypeGroupCode businessTypeGroupCode)
Sets the field 'businessTypeGroupCode'.
-
setBusinessTypeGroupName
public BusinessType setBusinessTypeGroupName(String businessTypeGroupName)
Sets the field 'businessTypeGroupName'.
-
setCode
public BusinessType setCode(BusinessTypeCode code)
Sets the field 'code'.
-
setName
public BusinessType setName(String name)
Sets the field 'name'.
-
clearBusinessTypeGroupCode
public void clearBusinessTypeGroupCode()
Clears the 'businessTypeGroupCode' field, the 'has' method for this field will now return false
-
clearBusinessTypeGroupName
public void clearBusinessTypeGroupName()
Clears the 'businessTypeGroupName' field, the 'has' method for this field will now return false
-
clearCode
public void clearCode()
Clears the 'code' field, the 'has' method for this field will now return false
-
clearName
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public BusinessType copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(BusinessType src)
Copy all the changed fields from the given source to this instance.
-
-