Category

public class Category extends GenericParcelable implements Validator, JSONifiable

This is an auto-generated Clover data object.

Fields

See also

Constructors

Link copied to clipboard
public void Category()
Constructs a new empty instance.
public void Category(String json)
Constructs a new instance from the given JSON String.
public void Category(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.
public void Category(Category src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
public final static Parcelable.Creator<Category> CREATOR
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearCanonical()
Clears the 'canonical' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearColorCode()
Clears the 'colorCode' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDeleted()
Clears the 'deleted' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearItems()
Clears the 'items' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearMenuSection()
Clears the 'menuSection' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearSortOrder()
Clears the 'sortOrder' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
Returns true if this instance has any changes.
Link copied to clipboard
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public abstract int describeContents()
public final int describeContents()
Link copied to clipboard
public final Bundle getBundle()
Gets a Bundle which can be used to get and set data attached to this instance.
Link copied to clipboard
Reference to canonical category
Link copied to clipboard
Hex code representation of the color assigned to this category and its items, in the form of #fff, #ffffff, or #ffffffff
Link copied to clipboard
Whether the category has been deleted.
Link copied to clipboard
public String getId()
Unique identifier
Link copied to clipboard
Ordered list of items associated with this category.
Link copied to clipboard
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.
Link copied to clipboard
Menu Section attribute that can be expanded to menu section specific attributes
Link copied to clipboard
The time this category was last modified
Link copied to clipboard
public String getName()
The name of the category which will appear in Clover Register App.
Link copied to clipboard
Integer used to determine how this category is sorted against other categories.
Link copied to clipboard
public boolean hasCanonical()
Checks whether the 'canonical' field has been set, however the value could be null
Link copied to clipboard
public boolean hasColorCode()
Checks whether the 'colorCode' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDeleted()
Checks whether the 'deleted' field has been set, however the value could be null
Link copied to clipboard
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
Link copied to clipboard
public boolean hasItems()
Checks whether the 'items' field has been set, however the value could be null
Link copied to clipboard
public boolean hasMenuSection()
Checks whether the 'menuSection' field has been set, however the value could be null
Link copied to clipboard
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
Link copied to clipboard
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
Link copied to clipboard
public boolean hasSortOrder()
Checks whether the 'sortOrder' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotEmptyItems()
Checks whether the 'items' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotNullCanonical()
Checks whether the 'canonical' field is set and is not null
Link copied to clipboard
public boolean isNotNullColorCode()
Checks whether the 'colorCode' field is set and is not null
Link copied to clipboard
public boolean isNotNullDeleted()
Checks whether the 'deleted' field is set and is not null
Link copied to clipboard
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
Link copied to clipboard
public boolean isNotNullItems()
Checks whether the 'items' field is set and is not null
Link copied to clipboard
public boolean isNotNullMenuSection()
Checks whether the 'menuSection' field is set and is not null
Link copied to clipboard
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
Link copied to clipboard
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
Link copied to clipboard
public boolean isNotNullSortOrder()
Checks whether the 'sortOrder' field is set and is not null
Link copied to clipboard
public void mergeChanges(Category src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public Category setCanonical(Reference canonical)
Sets the field 'canonical'.
Link copied to clipboard
public Category setColorCode(String colorCode)
Sets the field 'colorCode'.
Link copied to clipboard
public Category setDeleted(Boolean deleted)
Sets the field 'deleted'.
Link copied to clipboard
public Category setId(String id)
Sets the field 'id'.
Link copied to clipboard
public Category setItems(List<Reference> items)
Sets the field 'items'.
Link copied to clipboard
public Category setMenuSection(MenuSection menuSection)
Sets the field 'menuSection'.
Link copied to clipboard
public Category setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
Link copied to clipboard
public Category setName(String name)
Sets the field 'name'.
Link copied to clipboard
public Category setSortOrder(Integer sortOrder)
Sets the field 'sortOrder'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)
public final void writeToParcel(Parcel dest, int flags)