Package com.clover.sdk.v3.tables2
Class Landmark
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.tables2.Landmark
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Landmark 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
Landmark.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<Landmark>
CREATOR
static JSONifiable.Creator<Landmark>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Landmark()
Constructs a new empty instance.protected
Landmark(boolean noInit)
Constructs a new empty instance.Landmark(Landmark src)
Constructs a new instance that is a deep copy of the source instance.Landmark(String json)
Constructs a new instance from the given JSON String.Landmark(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
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearHeight()
Clears the 'height' 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
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearRotation()
Clears the 'rotation' field, the 'has' method for this field will now return falsevoid
clearSection()
Clears the 'section' field, the 'has' method for this field will now return falsevoid
clearShape()
Clears the 'shape' field, the 'has' method for this field will now return falsevoid
clearTopLeftX()
Clears the 'topLeftX' field, the 'has' method for this field will now return falsevoid
clearTopLeftY()
Clears the 'topLeftY' field, the 'has' method for this field will now return falsevoid
clearType()
Clears the 'type' field, the 'has' method for this field will now return falsevoid
clearWidth()
Clears the 'width' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Landmark
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getCreatedTime()
Timestamp when the landmark was createdLong
getDeletedTime()
Timestamp when landmark was last deletedprotected GenericClient
getGenericClient()
Integer
getHeight()
Height of the landmark on the landmark mapString
getId()
Unique identifierJSONObject
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.Reference
getMerchant()
The merchant the landmark belongs toLong
getModifiedTime()
Timestamp when the landmark was last modifiedString
getName()
Name of the landmarkInteger
getRotation()
Counterclockwise rotation of the landmark on the landmark mapReference
getSection()
The section this landmark belongs toLandmarkShape
getShape()
Shape of the landmarkInteger
getTopLeftX()
X coordinate of the landmark's top left location on the floor mapInteger
getTopLeftY()
Y coordinate of the landmark's top left location on the floor mapLandmarkType
getType()
Type of the landmarkInteger
getWidth()
Width of the landmark on the landmark mapboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasHeight()
Checks whether the 'height' 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
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasRotation()
Checks whether the 'rotation' field has been set, however the value could be nullboolean
hasSection()
Checks whether the 'section' field has been set, however the value could be nullboolean
hasShape()
Checks whether the 'shape' field has been set, however the value could be nullboolean
hasTopLeftX()
Checks whether the 'topLeftX' field has been set, however the value could be nullboolean
hasTopLeftY()
Checks whether the 'topLeftY' field has been set, however the value could be nullboolean
hasType()
Checks whether the 'type' field has been set, however the value could be nullboolean
hasWidth()
Checks whether the 'width' field has been set, however the value could be nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullHeight()
Checks whether the 'height' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullRotation()
Checks whether the 'rotation' field is set and is not nullboolean
isNotNullSection()
Checks whether the 'section' field is set and is not nullboolean
isNotNullShape()
Checks whether the 'shape' field is set and is not nullboolean
isNotNullTopLeftX()
Checks whether the 'topLeftX' field is set and is not nullboolean
isNotNullTopLeftY()
Checks whether the 'topLeftY' field is set and is not nullboolean
isNotNullType()
Checks whether the 'type' field is set and is not nullboolean
isNotNullWidth()
Checks whether the 'width' field is set and is not nullvoid
mergeChanges(Landmark 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.Landmark
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.Landmark
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.Landmark
setHeight(Integer height)
Sets the field 'height'.Landmark
setId(String id)
Sets the field 'id'.Landmark
setMerchant(Reference merchant)
Sets the field 'merchant'.Landmark
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.Landmark
setName(String name)
Sets the field 'name'.Landmark
setRotation(Integer rotation)
Sets the field 'rotation'.Landmark
setSection(Reference section)
Sets the field 'section'.Landmark
setShape(LandmarkShape shape)
Sets the field 'shape'.Landmark
setTopLeftX(Integer topLeftX)
Sets the field 'topLeftX'.Landmark
setTopLeftY(Integer topLeftY)
Sets the field 'topLeftY'.Landmark
setType(LandmarkType type)
Sets the field 'type'.Landmark
setWidth(Integer width)
Sets the field 'width'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Landmark> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Landmark> JSON_CREATOR
-
-
Constructor Detail
-
Landmark
public Landmark()
Constructs a new empty instance.
-
Landmark
protected Landmark(boolean noInit)
Constructs a new empty instance.
-
Landmark
public Landmark(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Landmark
public Landmark(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.
-
Landmark
public Landmark(Landmark 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
-
getName
public String getName()
Name of the landmark
-
getMerchant
public Reference getMerchant()
The merchant the landmark belongs to
-
getSection
public Reference getSection()
The section this landmark belongs to
-
getTopLeftX
public Integer getTopLeftX()
X coordinate of the landmark's top left location on the floor map
-
getTopLeftY
public Integer getTopLeftY()
Y coordinate of the landmark's top left location on the floor map
-
getWidth
public Integer getWidth()
Width of the landmark on the landmark map
-
getHeight
public Integer getHeight()
Height of the landmark on the landmark map
-
getType
public LandmarkType getType()
Type of the landmark
-
getShape
public LandmarkShape getShape()
Shape of the landmark
-
getRotation
public Integer getRotation()
Counterclockwise rotation of the landmark on the landmark map
-
getCreatedTime
public Long getCreatedTime()
Timestamp when the landmark was created
-
getModifiedTime
public Long getModifiedTime()
Timestamp when the landmark was last modified
-
getDeletedTime
public Long getDeletedTime()
Timestamp when landmark was last deleted
-
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
-
isNotNullName
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
-
isNotNullMerchant
public boolean isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
-
isNotNullSection
public boolean isNotNullSection()
Checks whether the 'section' field is set and is not null
-
isNotNullTopLeftX
public boolean isNotNullTopLeftX()
Checks whether the 'topLeftX' field is set and is not null
-
isNotNullTopLeftY
public boolean isNotNullTopLeftY()
Checks whether the 'topLeftY' field is set and is not null
-
isNotNullWidth
public boolean isNotNullWidth()
Checks whether the 'width' field is set and is not null
-
isNotNullHeight
public boolean isNotNullHeight()
Checks whether the 'height' field is set and is not null
-
isNotNullType
public boolean isNotNullType()
Checks whether the 'type' field is set and is not null
-
isNotNullShape
public boolean isNotNullShape()
Checks whether the 'shape' field is set and is not null
-
isNotNullRotation
public boolean isNotNullRotation()
Checks whether the 'rotation' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' 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
-
hasName
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
-
hasMerchant
public boolean hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
-
hasSection
public boolean hasSection()
Checks whether the 'section' field has been set, however the value could be null
-
hasTopLeftX
public boolean hasTopLeftX()
Checks whether the 'topLeftX' field has been set, however the value could be null
-
hasTopLeftY
public boolean hasTopLeftY()
Checks whether the 'topLeftY' field has been set, however the value could be null
-
hasWidth
public boolean hasWidth()
Checks whether the 'width' field has been set, however the value could be null
-
hasHeight
public boolean hasHeight()
Checks whether the 'height' field has been set, however the value could be null
-
hasType
public boolean hasType()
Checks whether the 'type' field has been set, however the value could be null
-
hasShape
public boolean hasShape()
Checks whether the 'shape' field has been set, however the value could be null
-
hasRotation
public boolean hasRotation()
Checks whether the 'rotation' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
setMerchant
public Landmark setMerchant(Reference merchant)
Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setSection
public Landmark setSection(Reference section)
Sets the field 'section'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setType
public Landmark setType(LandmarkType type)
Sets the field 'type'.
-
setShape
public Landmark setShape(LandmarkShape shape)
Sets the field 'shape'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearName
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
-
clearMerchant
public void clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
-
clearSection
public void clearSection()
Clears the 'section' field, the 'has' method for this field will now return false
-
clearTopLeftX
public void clearTopLeftX()
Clears the 'topLeftX' field, the 'has' method for this field will now return false
-
clearTopLeftY
public void clearTopLeftY()
Clears the 'topLeftY' field, the 'has' method for this field will now return false
-
clearWidth
public void clearWidth()
Clears the 'width' field, the 'has' method for this field will now return false
-
clearHeight
public void clearHeight()
Clears the 'height' field, the 'has' method for this field will now return false
-
clearType
public void clearType()
Clears the 'type' field, the 'has' method for this field will now return false
-
clearShape
public void clearShape()
Clears the 'shape' field, the 'has' method for this field will now return false
-
clearRotation
public void clearRotation()
Clears the 'rotation' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' 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 Landmark copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Landmark src)
Copy all the changed fields from the given source to this instance.
-
-