public class CategorySortOrderArray extends GenericParcelable implements Validator, JSONifiable
IInventoryService
Modifier and Type | Class and Description |
---|---|
static interface |
CategorySortOrderArray.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CategorySortOrderArray> |
CREATOR |
static JSONifiable.Creator<CategorySortOrderArray> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
CategorySortOrderArray()
Constructs a new empty instance.
|
protected |
CategorySortOrderArray(boolean noInit)
Constructs a new empty instance.
|
|
CategorySortOrderArray(CategorySortOrderArray src)
Constructs a new instance that is a deep copy of the source instance.
|
|
CategorySortOrderArray(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.
|
|
CategorySortOrderArray(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCategorySortOrders()
Clears the 'categorySortOrders' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
CategorySortOrderArray |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
List<CategorySortOrder> |
getCategorySortOrders() |
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.
|
boolean |
hasCategorySortOrders()
Checks whether the 'categorySortOrders' field has been set, however the value could be null
|
boolean |
isNotEmptyCategorySortOrders()
Checks whether the 'categorySortOrders' field is set and is not null and is not empty
|
boolean |
isNotNullCategorySortOrders()
Checks whether the 'categorySortOrders' field is set and is not null
|
void |
mergeChanges(CategorySortOrderArray 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.
|
CategorySortOrderArray |
setCategorySortOrders(List<CategorySortOrder> categorySortOrders)
Sets the field 'categorySortOrders'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<CategorySortOrderArray> CREATOR
public static final JSONifiable.Creator<CategorySortOrderArray> JSON_CREATOR
public CategorySortOrderArray()
protected CategorySortOrderArray(boolean noInit)
public CategorySortOrderArray(String json) throws IllegalArgumentException
IllegalArgumentException
public CategorySortOrderArray(JSONObject jsonObject)
public CategorySortOrderArray(CategorySortOrderArray src)
public List<CategorySortOrder> getCategorySortOrders()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullCategorySortOrders()
public boolean isNotEmptyCategorySortOrders()
public boolean hasCategorySortOrders()
public CategorySortOrderArray setCategorySortOrders(List<CategorySortOrder> categorySortOrders)
public void clearCategorySortOrders()
public boolean containsChanges()
public void resetChangeLog()
public CategorySortOrderArray copyChanges()
public void mergeChanges(CategorySortOrderArray src)