public class MenuSection extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
MenuSection.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MenuSection> |
CREATOR |
static JSONifiable.Creator<MenuSection> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MenuSection()
Constructs a new empty instance.
|
protected |
MenuSection(boolean noInit)
Constructs a new empty instance.
|
|
MenuSection(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.
|
|
MenuSection(MenuSection src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MenuSection(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCategory()
Clears the 'category' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
|
void |
clearDescription()
Clears the 'description' field, the 'has' method for this field will now return false
|
void |
clearEnabled()
Clears the 'enabled' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearImageFilename()
Clears the 'imageFilename' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' 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
|
void |
clearReasonCode()
Clears the 'reasonCode' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MenuSection |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Reference |
getCategory()
Reference to a category
|
Long |
getCreatedTime()
Timestamp when the menu section was created
|
Long |
getDeletedTime()
Timestamp when the menu section was last deleted
|
String |
getDescription()
Item layout description
|
Boolean |
getEnabled()
Section enabled for menu
|
protected GenericClient |
getGenericClient() |
String |
getId()
Item_layout id
|
String |
getImageFilename()
Item layout image file path
|
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.
|
Long |
getModifiedTime()
Timestamp when the menu section was last modified
|
String |
getName()
Customer facing item layout name
|
String |
getReasonCode()
Reason for being filtered out
|
boolean |
hasCategory()
Checks whether the 'category' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
|
boolean |
hasDescription()
Checks whether the 'description' field has been set, however the value could be null
|
boolean |
hasEnabled()
Checks whether the 'enabled' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasImageFilename()
Checks whether the 'imageFilename' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' 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 |
hasReasonCode()
Checks whether the 'reasonCode' field has been set, however the value could be null
|
boolean |
isNotNullCategory()
Checks whether the 'category' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullDescription()
Checks whether the 'description' field is set and is not null
|
boolean |
isNotNullEnabled()
Checks whether the 'enabled' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullImageFilename()
Checks whether the 'imageFilename' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullReasonCode()
Checks whether the 'reasonCode' field is set and is not null
|
void |
mergeChanges(MenuSection 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.
|
MenuSection |
setCategory(Reference category)
Sets the field 'category'.
|
MenuSection |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
MenuSection |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
MenuSection |
setDescription(String description)
Sets the field 'description'.
|
MenuSection |
setEnabled(Boolean enabled)
Sets the field 'enabled'.
|
MenuSection |
setId(String id)
Sets the field 'id'.
|
MenuSection |
setImageFilename(String imageFilename)
Sets the field 'imageFilename'.
|
MenuSection |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
MenuSection |
setName(String name)
Sets the field 'name'.
|
MenuSection |
setReasonCode(String reasonCode)
Sets the field 'reasonCode'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MenuSection> CREATOR
public static final JSONifiable.Creator<MenuSection> JSON_CREATOR
public MenuSection()
protected MenuSection(boolean noInit)
public MenuSection(String json) throws IllegalArgumentException
IllegalArgumentException
public MenuSection(JSONObject jsonObject)
public MenuSection(MenuSection src)
public String getId()
public Reference getCategory()
public String getName()
public String getDescription()
public String getImageFilename()
public Boolean getEnabled()
public String getReasonCode()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCategory()
public boolean isNotNullName()
public boolean isNotNullDescription()
public boolean isNotNullImageFilename()
public boolean isNotNullEnabled()
public boolean isNotNullReasonCode()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasCategory()
public boolean hasName()
public boolean hasDescription()
public boolean hasImageFilename()
public boolean hasEnabled()
public boolean hasReasonCode()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public MenuSection setId(String id)
public MenuSection setCategory(Reference category)
public MenuSection setName(String name)
public MenuSection setDescription(String description)
public MenuSection setImageFilename(String imageFilename)
public MenuSection setEnabled(Boolean enabled)
public MenuSection setReasonCode(String reasonCode)
public MenuSection setCreatedTime(Long createdTime)
public MenuSection setModifiedTime(Long modifiedTime)
public MenuSection setDeletedTime(Long deletedTime)
public void clearId()
public void clearCategory()
public void clearName()
public void clearDescription()
public void clearImageFilename()
public void clearEnabled()
public void clearReasonCode()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public MenuSection copyChanges()
public void mergeChanges(MenuSection src)