Package com.clover.sdk.v3.tables2
Class Section
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.tables2.Section
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Section 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
Section.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<Section>
CREATOR
static JSONifiable.Creator<Section>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Section()
Constructs a new empty instance.protected
Section(boolean noInit)
Constructs a new empty instance.Section(Section src)
Constructs a new instance that is a deep copy of the source instance.Section(String json)
Constructs a new instance from the given JSON String.Section(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
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeletable()
Clears the 'deletable' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' 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 falsevoid
clearSortOrder()
Clears the 'sortOrder' field, the 'has' method for this field will now return falsevoid
clearTables()
Clears the 'tables' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Section
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getCreatedTime()
Timestamp when the section was createdBoolean
getDeletable()
True if the section can be deleted by the merchantLong
getDeletedTime()
Timestamp when section was last deletedprotected GenericClient
getGenericClient()
String
getId()
Unique identifierJSONObject
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.Reference
getMerchant()
The merchant the section belongs toLong
getModifiedTime()
Timestamp when the section was last modifiedString
getName()
Name of the tableInteger
getSortOrder()
Display sort order amongst all the merchant's sectionsList<Table>
getTables()
Tables belonging to this sectionboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeletable()
Checks whether the 'deletable' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' 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
hasSortOrder()
Checks whether the 'sortOrder' field has been set, however the value could be nullboolean
hasTables()
Checks whether the 'tables' field has been set, however the value could be nullboolean
isNotEmptyTables()
Checks whether the 'tables' field is set and is not null and is not emptyboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeletable()
Checks whether the 'deletable' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullSortOrder()
Checks whether the 'sortOrder' field is set and is not nullboolean
isNotNullTables()
Checks whether the 'tables' field is set and is not nullvoid
mergeChanges(Section 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.Section
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.Section
setDeletable(Boolean deletable)
Sets the field 'deletable'.Section
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.Section
setId(String id)
Sets the field 'id'.Section
setMerchant(Reference merchant)
Sets the field 'merchant'.Section
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.Section
setName(String name)
Sets the field 'name'.Section
setSortOrder(Integer sortOrder)
Sets the field 'sortOrder'.Section
setTables(List<Table> tables)
Sets the field 'tables'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Section> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Section> JSON_CREATOR
-
-
Constructor Detail
-
Section
public Section()
Constructs a new empty instance.
-
Section
protected Section(boolean noInit)
Constructs a new empty instance.
-
Section
public Section(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Section
public Section(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.
-
Section
public Section(Section src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getName
public String getName()
Name of the table
-
getCreatedTime
public Long getCreatedTime()
Timestamp when the section was created
-
getModifiedTime
public Long getModifiedTime()
Timestamp when the section was last modified
-
getDeletedTime
public Long getDeletedTime()
Timestamp when section was last deleted
-
getMerchant
public Reference getMerchant()
The merchant the section belongs to
-
getSortOrder
public Integer getSortOrder()
Display sort order amongst all the merchant's sections
-
getDeletable
public Boolean getDeletable()
True if the section can be deleted by the merchant
-
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
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullName
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
-
isNotNullMerchant
public boolean isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
-
isNotNullSortOrder
public boolean isNotNullSortOrder()
Checks whether the 'sortOrder' field is set and is not null
-
isNotNullDeletable
public boolean isNotNullDeletable()
Checks whether the 'deletable' field is set and is not null
-
isNotNullTables
public boolean isNotNullTables()
Checks whether the 'tables' field is set and is not null
-
isNotEmptyTables
public boolean isNotEmptyTables()
Checks whether the 'tables' field is set and is not null and is not empty
-
hasId
public boolean hasId()
Checks whether the 'id' 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
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
hasMerchant
public boolean hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
-
hasSortOrder
public boolean hasSortOrder()
Checks whether the 'sortOrder' field has been set, however the value could be null
-
hasDeletable
public boolean hasDeletable()
Checks whether the 'deletable' field has been set, however the value could be null
-
hasTables
public boolean hasTables()
Checks whether the 'tables' field has been set, however the value could be null
-
setMerchant
public Section setMerchant(Reference merchant)
Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setTables
public Section setTables(List<Table> tables)
Sets the field 'tables'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
clearId
public void clearId()
Clears the 'id' 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
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
-
clearMerchant
public void clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
-
clearSortOrder
public void clearSortOrder()
Clears the 'sortOrder' field, the 'has' method for this field will now return false
-
clearDeletable
public void clearDeletable()
Clears the 'deletable' field, the 'has' method for this field will now return false
-
clearTables
public void clearTables()
Clears the 'tables' 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 Section copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Section src)
Copy all the changed fields from the given source to this instance.
-
-