public class Rom extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
Rom.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Rom> |
CREATOR |
static JSONifiable.Creator<Rom> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Rom()
Constructs a new empty instance.
|
protected |
Rom(boolean noInit)
Constructs a new empty instance.
|
|
Rom(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.
|
|
Rom(Rom src)
Constructs a new instance that is a deep copy of the source instance.
|
|
Rom(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAssociationTime()
Clears the 'associationTime' field, the 'has' method for this field will now return false
|
void |
clearBuildType()
Clears the 'buildType' field, the 'has' method for this field will now return false
|
void |
clearCreatedAt()
Clears the 'createdAt' 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 |
clearIsCritical()
Clears the 'isCritical' field, the 'has' method for this field will now return false
|
void |
clearPublished()
Clears the 'published' field, the 'has' method for this field will now return false
|
void |
clearVersion()
Clears the 'version' field, the 'has' method for this field will now return false
|
void |
clearVersionName()
Clears the 'versionName' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
Rom |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAssociationTime()
When the ROM was associated with a merchant group
|
RomBuildType |
getBuildType() |
Long |
getCreatedAt()
When the ROM was created
|
String |
getDescription() |
Boolean |
getEnabled() |
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
Boolean |
getIsCritical() |
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 |
getPublished() |
Long |
getVersion() |
String |
getVersionName() |
boolean |
hasAssociationTime()
Checks whether the 'associationTime' field has been set, however the value could be null
|
boolean |
hasBuildType()
Checks whether the 'buildType' field has been set, however the value could be null
|
boolean |
hasCreatedAt()
Checks whether the 'createdAt' 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 |
hasIsCritical()
Checks whether the 'isCritical' field has been set, however the value could be null
|
boolean |
hasPublished()
Checks whether the 'published' field has been set, however the value could be null
|
boolean |
hasVersion()
Checks whether the 'version' field has been set, however the value could be null
|
boolean |
hasVersionName()
Checks whether the 'versionName' field has been set, however the value could be null
|
boolean |
isNotNullAssociationTime()
Checks whether the 'associationTime' field is set and is not null
|
boolean |
isNotNullBuildType()
Checks whether the 'buildType' field is set and is not null
|
boolean |
isNotNullCreatedAt()
Checks whether the 'createdAt' 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 |
isNotNullIsCritical()
Checks whether the 'isCritical' field is set and is not null
|
boolean |
isNotNullPublished()
Checks whether the 'published' field is set and is not null
|
boolean |
isNotNullVersion()
Checks whether the 'version' field is set and is not null
|
boolean |
isNotNullVersionName()
Checks whether the 'versionName' field is set and is not null
|
void |
mergeChanges(Rom 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.
|
Rom |
setAssociationTime(Long associationTime)
Sets the field 'associationTime'.
|
Rom |
setBuildType(RomBuildType buildType)
Sets the field 'buildType'.
|
Rom |
setCreatedAt(Long createdAt)
Sets the field 'createdAt'.
|
Rom |
setDescription(String description)
Sets the field 'description'.
|
Rom |
setEnabled(Boolean enabled)
Sets the field 'enabled'.
|
Rom |
setId(String id)
Sets the field 'id'.
|
Rom |
setIsCritical(Boolean isCritical)
Sets the field 'isCritical'.
|
Rom |
setPublished(Boolean published)
Sets the field 'published'.
|
Rom |
setVersion(Long version)
Sets the field 'version'.
|
Rom |
setVersionName(String versionName)
Sets the field 'versionName'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Rom> CREATOR
public static final JSONifiable.Creator<Rom> JSON_CREATOR
public Rom()
protected Rom(boolean noInit)
public Rom(String json) throws IllegalArgumentException
IllegalArgumentException
public Rom(JSONObject jsonObject)
public Rom(Rom src)
public String getId()
public Long getCreatedAt()
public Long getVersion()
public String getVersionName()
public String getDescription()
public RomBuildType getBuildType()
public Boolean getIsCritical()
public Boolean getPublished()
public Boolean getEnabled()
public Long getAssociationTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCreatedAt()
public boolean isNotNullVersion()
public boolean isNotNullVersionName()
public boolean isNotNullDescription()
public boolean isNotNullBuildType()
public boolean isNotNullIsCritical()
public boolean isNotNullPublished()
public boolean isNotNullEnabled()
public boolean isNotNullAssociationTime()
public boolean hasId()
public boolean hasCreatedAt()
public boolean hasVersion()
public boolean hasVersionName()
public boolean hasDescription()
public boolean hasBuildType()
public boolean hasIsCritical()
public boolean hasPublished()
public boolean hasEnabled()
public boolean hasAssociationTime()
public Rom setBuildType(RomBuildType buildType)
public Rom setAssociationTime(Long associationTime)
public void clearId()
public void clearCreatedAt()
public void clearVersion()
public void clearVersionName()
public void clearDescription()
public void clearBuildType()
public void clearIsCritical()
public void clearPublished()
public void clearEnabled()
public void clearAssociationTime()
public boolean containsChanges()
public void resetChangeLog()
public Rom copyChanges()
public void mergeChanges(Rom src)