public class Logo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
Logo.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Logo> |
CREATOR |
static JSONifiable.Creator<Logo> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Logo()
Constructs a new empty instance.
|
protected |
Logo(boolean noInit)
Constructs a new empty instance.
|
|
Logo(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.
|
|
Logo(Logo src)
Constructs a new instance that is a deep copy of the source instance.
|
|
Logo(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearLogoFilename()
Clears the 'logoFilename' field, the 'has' method for this field will now return false
|
void |
clearLogoType()
Clears the 'logoType' 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.
|
Logo |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
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.
|
String |
getLogoFilename()
The filename of the logo
|
LogoType |
getLogoType()
The type of merchant logo
|
String |
getUrl()
URL of the logo file.
|
boolean |
hasLogoFilename()
Checks whether the 'logoFilename' field has been set, however the value could be null
|
boolean |
hasLogoType()
Checks whether the 'logoType' 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 |
isNotNullLogoFilename()
Checks whether the 'logoFilename' field is set and is not null
|
boolean |
isNotNullLogoType()
Checks whether the 'logoType' field is set and is not null
|
boolean |
isNotNullUrl()
Checks whether the 'url' field is set and is not null
|
void |
mergeChanges(Logo 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.
|
Logo |
setLogoFilename(String logoFilename)
Sets the field 'logoFilename'.
|
Logo |
setLogoType(LogoType logoType)
Sets the field 'logoType'.
|
Logo |
setUrl(String url)
Sets the field 'url'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Logo> CREATOR
public static final JSONifiable.Creator<Logo> JSON_CREATOR
public Logo()
protected Logo(boolean noInit)
public Logo(String json) throws IllegalArgumentException
IllegalArgumentException
public Logo(JSONObject jsonObject)
public Logo(Logo src)
public LogoType getLogoType()
public String getLogoFilename()
public String getUrl()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullLogoType()
public boolean isNotNullLogoFilename()
public boolean isNotNullUrl()
public boolean hasLogoType()
public boolean hasLogoFilename()
public boolean hasUrl()
public void clearLogoType()
public void clearLogoFilename()
public void clearUrl()
public boolean containsChanges()
public void resetChangeLog()
public Logo copyChanges()
public void mergeChanges(Logo src)