Package com.clover.sdk.v3.device
Class Rom
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.device.Rom
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Rom extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Rom.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Rom>
CREATOR
static JSONifiable.Creator<Rom>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Rom()
Constructs a new empty instance.protected
Rom(boolean noInit)
Constructs a new empty instance.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAssociationTime()
Clears the 'associationTime' field, the 'has' method for this field will now return falsevoid
clearBuildType()
Clears the 'buildType' field, the 'has' method for this field will now return falsevoid
clearCreatedAt()
Clears the 'createdAt' field, the 'has' method for this field will now return falsevoid
clearDescription()
Clears the 'description' field, the 'has' method for this field will now return falsevoid
clearEnabled()
Clears the 'enabled' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearIsCritical()
Clears the 'isCritical' field, the 'has' method for this field will now return falsevoid
clearPublished()
Clears the 'published' field, the 'has' method for this field will now return falsevoid
clearVersion()
Clears the 'version' field, the 'has' method for this field will now return falsevoid
clearVersionName()
Clears the 'versionName' field, the 'has' method for this field will now return falseboolean
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 groupRomBuildType
getBuildType()
Long
getCreatedAt()
When the ROM was createdString
getDescription()
Boolean
getEnabled()
protected GenericClient
getGenericClient()
String
getId()
Unique identifierBoolean
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 nullboolean
hasBuildType()
Checks whether the 'buildType' field has been set, however the value could be nullboolean
hasCreatedAt()
Checks whether the 'createdAt' field has been set, however the value could be nullboolean
hasDescription()
Checks whether the 'description' field has been set, however the value could be nullboolean
hasEnabled()
Checks whether the 'enabled' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasIsCritical()
Checks whether the 'isCritical' field has been set, however the value could be nullboolean
hasPublished()
Checks whether the 'published' field has been set, however the value could be nullboolean
hasVersion()
Checks whether the 'version' field has been set, however the value could be nullboolean
hasVersionName()
Checks whether the 'versionName' field has been set, however the value could be nullboolean
isNotNullAssociationTime()
Checks whether the 'associationTime' field is set and is not nullboolean
isNotNullBuildType()
Checks whether the 'buildType' field is set and is not nullboolean
isNotNullCreatedAt()
Checks whether the 'createdAt' field is set and is not nullboolean
isNotNullDescription()
Checks whether the 'description' field is set and is not nullboolean
isNotNullEnabled()
Checks whether the 'enabled' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullIsCritical()
Checks whether the 'isCritical' field is set and is not nullboolean
isNotNullPublished()
Checks whether the 'published' field is set and is not nullboolean
isNotNullVersion()
Checks whether the 'version' field is set and is not nullboolean
isNotNullVersionName()
Checks whether the 'versionName' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Rom> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Rom> JSON_CREATOR
-
-
Constructor Detail
-
Rom
public Rom()
Constructs a new empty instance.
-
Rom
protected Rom(boolean noInit)
Constructs a new empty instance.
-
Rom
public Rom(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Rom
public 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
public Rom(Rom src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getCreatedAt
public Long getCreatedAt()
When the ROM was created
-
getVersion
public Long getVersion()
-
getVersionName
public String getVersionName()
-
getDescription
public String getDescription()
-
getBuildType
public RomBuildType getBuildType()
-
getIsCritical
public Boolean getIsCritical()
-
getPublished
public Boolean getPublished()
-
getEnabled
public Boolean getEnabled()
-
getAssociationTime
public Long getAssociationTime()
When the ROM was associated with a merchant group
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullCreatedAt
public boolean isNotNullCreatedAt()
Checks whether the 'createdAt' field is set and is not null
-
isNotNullVersion
public boolean isNotNullVersion()
Checks whether the 'version' field is set and is not null
-
isNotNullVersionName
public boolean isNotNullVersionName()
Checks whether the 'versionName' field is set and is not null
-
isNotNullDescription
public boolean isNotNullDescription()
Checks whether the 'description' field is set and is not null
-
isNotNullBuildType
public boolean isNotNullBuildType()
Checks whether the 'buildType' field is set and is not null
-
isNotNullIsCritical
public boolean isNotNullIsCritical()
Checks whether the 'isCritical' field is set and is not null
-
isNotNullPublished
public boolean isNotNullPublished()
Checks whether the 'published' field is set and is not null
-
isNotNullEnabled
public boolean isNotNullEnabled()
Checks whether the 'enabled' field is set and is not null
-
isNotNullAssociationTime
public boolean isNotNullAssociationTime()
Checks whether the 'associationTime' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasCreatedAt
public boolean hasCreatedAt()
Checks whether the 'createdAt' field has been set, however the value could be null
-
hasVersion
public boolean hasVersion()
Checks whether the 'version' field has been set, however the value could be null
-
hasVersionName
public boolean hasVersionName()
Checks whether the 'versionName' field has been set, however the value could be null
-
hasDescription
public boolean hasDescription()
Checks whether the 'description' field has been set, however the value could be null
-
hasBuildType
public boolean hasBuildType()
Checks whether the 'buildType' field has been set, however the value could be null
-
hasIsCritical
public boolean hasIsCritical()
Checks whether the 'isCritical' field has been set, however the value could be null
-
hasPublished
public boolean hasPublished()
Checks whether the 'published' field has been set, however the value could be null
-
hasEnabled
public boolean hasEnabled()
Checks whether the 'enabled' field has been set, however the value could be null
-
hasAssociationTime
public boolean hasAssociationTime()
Checks whether the 'associationTime' field has been set, however the value could be null
-
setBuildType
public Rom setBuildType(RomBuildType buildType)
Sets the field 'buildType'.
-
setAssociationTime
public Rom setAssociationTime(Long associationTime)
Sets the field 'associationTime'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearCreatedAt
public void clearCreatedAt()
Clears the 'createdAt' field, the 'has' method for this field will now return false
-
clearVersion
public void clearVersion()
Clears the 'version' field, the 'has' method for this field will now return false
-
clearVersionName
public void clearVersionName()
Clears the 'versionName' field, the 'has' method for this field will now return false
-
clearDescription
public void clearDescription()
Clears the 'description' field, the 'has' method for this field will now return false
-
clearBuildType
public void clearBuildType()
Clears the 'buildType' field, the 'has' method for this field will now return false
-
clearIsCritical
public void clearIsCritical()
Clears the 'isCritical' field, the 'has' method for this field will now return false
-
clearPublished
public void clearPublished()
Clears the 'published' field, the 'has' method for this field will now return false
-
clearEnabled
public void clearEnabled()
Clears the 'enabled' field, the 'has' method for this field will now return false
-
clearAssociationTime
public void clearAssociationTime()
Clears the 'associationTime' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public Rom copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Rom src)
Copy all the changed fields from the given source to this instance.
-
-