public class BrandAsset extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
BrandAsset.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BrandAsset> |
CREATOR |
static JSONifiable.Creator<BrandAsset> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
BrandAsset()
Constructs a new empty instance.
|
protected |
BrandAsset(boolean noInit)
Constructs a new empty instance.
|
|
BrandAsset(BrandAsset src)
Constructs a new instance that is a deep copy of the source instance.
|
|
BrandAsset(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.
|
|
BrandAsset(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearFilename()
Clears the 'filename' 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 |
clearMimeType()
Clears the 'mimeType' field, the 'has' method for this field will now return false
|
void |
clearReseller()
Clears the 'reseller' field, the 'has' method for this field will now return false
|
void |
clearType()
Clears the 'type' field, the 'has' method for this field will now return false
|
void |
clearUrl()
Clears the 'url' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
BrandAsset |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getFilename() |
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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 |
getMimeType() |
Reference |
getReseller() |
String |
getType() |
String |
getUrl() |
boolean |
hasFilename()
Checks whether the 'filename' 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 |
hasMimeType()
Checks whether the 'mimeType' field has been set, however the value could be null
|
boolean |
hasReseller()
Checks whether the 'reseller' field has been set, however the value could be null
|
boolean |
hasType()
Checks whether the 'type' field has been set, however the value could be null
|
boolean |
hasUrl()
Checks whether the 'url' field has been set, however the value could be null
|
boolean |
isNotNullFilename()
Checks whether the 'filename' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMimeType()
Checks whether the 'mimeType' field is set and is not null
|
boolean |
isNotNullReseller()
Checks whether the 'reseller' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
boolean |
isNotNullUrl()
Checks whether the 'url' field is set and is not null
|
void |
mergeChanges(BrandAsset 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.
|
BrandAsset |
setFilename(String filename)
Sets the field 'filename'.
|
BrandAsset |
setId(String id)
Sets the field 'id'.
|
BrandAsset |
setMimeType(String mimeType)
Sets the field 'mimeType'.
|
BrandAsset |
setReseller(Reference reseller)
Sets the field 'reseller'.
|
BrandAsset |
setType(String type)
Sets the field 'type'.
|
BrandAsset |
setUrl(String url)
Sets the field 'url'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<BrandAsset> CREATOR
public static final JSONifiable.Creator<BrandAsset> JSON_CREATOR
public BrandAsset()
protected BrandAsset(boolean noInit)
public BrandAsset(String json) throws IllegalArgumentException
IllegalArgumentException
public BrandAsset(JSONObject jsonObject)
public BrandAsset(BrandAsset src)
public String getId()
public String getType()
public String getFilename()
public String getMimeType()
public String getUrl()
public Reference getReseller()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullType()
public boolean isNotNullFilename()
public boolean isNotNullMimeType()
public boolean isNotNullUrl()
public boolean isNotNullReseller()
public boolean hasId()
public boolean hasType()
public boolean hasFilename()
public boolean hasMimeType()
public boolean hasUrl()
public boolean hasReseller()
public BrandAsset setId(String id)
public BrandAsset setType(String type)
public BrandAsset setFilename(String filename)
public BrandAsset setMimeType(String mimeType)
public BrandAsset setUrl(String url)
public BrandAsset setReseller(Reference reseller)
public void clearId()
public void clearType()
public void clearFilename()
public void clearMimeType()
public void clearUrl()
public void clearReseller()
public boolean containsChanges()
public void resetChangeLog()
public BrandAsset copyChanges()
public void mergeChanges(BrandAsset src)