public class Landmark extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
Landmark.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Landmark> |
CREATOR |
static JSONifiable.Creator<Landmark> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Landmark()
Constructs a new empty instance.
|
protected |
Landmark(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
|
void |
clearHeight()
Clears the 'height' 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 |
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearRotation()
Clears the 'rotation' field, the 'has' method for this field will now return false
|
void |
clearSection()
Clears the 'section' field, the 'has' method for this field will now return false
|
void |
clearShape()
Clears the 'shape' field, the 'has' method for this field will now return false
|
void |
clearTopLeftX()
Clears the 'topLeftX' field, the 'has' method for this field will now return false
|
void |
clearTopLeftY()
Clears the 'topLeftY' 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 |
clearWidth()
Clears the 'width' field, the 'has' method for this field will now return false
|
boolean |
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 created
|
Long |
getDeletedTime()
Timestamp when landmark was last deleted
|
protected GenericClient |
getGenericClient() |
Integer |
getHeight()
Height of the landmark on the landmark map
|
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.
|
Reference |
getMerchant()
The merchant the landmark belongs to
|
Long |
getModifiedTime()
Timestamp when the landmark was last modified
|
String |
getName()
Name of the landmark
|
Integer |
getRotation()
Counterclockwise rotation of the landmark on the landmark map
|
Reference |
getSection()
The section this landmark belongs to
|
LandmarkShape |
getShape()
Shape of the landmark
|
Integer |
getTopLeftX()
X coordinate of the landmark's top left location on the floor map
|
Integer |
getTopLeftY()
Y coordinate of the landmark's top left location on the floor map
|
LandmarkType |
getType()
Type of the landmark
|
Integer |
getWidth()
Width of the landmark on the landmark map
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
|
boolean |
hasHeight()
Checks whether the 'height' 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 |
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasRotation()
Checks whether the 'rotation' field has been set, however the value could be null
|
boolean |
hasSection()
Checks whether the 'section' field has been set, however the value could be null
|
boolean |
hasShape()
Checks whether the 'shape' field has been set, however the value could be null
|
boolean |
hasTopLeftX()
Checks whether the 'topLeftX' field has been set, however the value could be null
|
boolean |
hasTopLeftY()
Checks whether the 'topLeftY' 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 |
hasWidth()
Checks whether the 'width' field has been set, however the value could be null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullHeight()
Checks whether the 'height' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullRotation()
Checks whether the 'rotation' field is set and is not null
|
boolean |
isNotNullSection()
Checks whether the 'section' field is set and is not null
|
boolean |
isNotNullShape()
Checks whether the 'shape' field is set and is not null
|
boolean |
isNotNullTopLeftX()
Checks whether the 'topLeftX' field is set and is not null
|
boolean |
isNotNullTopLeftY()
Checks whether the 'topLeftY' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
boolean |
isNotNullWidth()
Checks whether the 'width' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Landmark> CREATOR
public static final JSONifiable.Creator<Landmark> JSON_CREATOR
public Landmark()
protected Landmark(boolean noInit)
public Landmark(String json) throws IllegalArgumentException
IllegalArgumentException
public Landmark(JSONObject jsonObject)
public Landmark(Landmark src)
public String getId()
public String getName()
public Reference getMerchant()
public Reference getSection()
public Integer getTopLeftX()
public Integer getTopLeftY()
public Integer getWidth()
public Integer getHeight()
public LandmarkType getType()
public LandmarkShape getShape()
public Integer getRotation()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullMerchant()
public boolean isNotNullSection()
public boolean isNotNullTopLeftX()
public boolean isNotNullTopLeftY()
public boolean isNotNullWidth()
public boolean isNotNullHeight()
public boolean isNotNullType()
public boolean isNotNullShape()
public boolean isNotNullRotation()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasName()
public boolean hasMerchant()
public boolean hasSection()
public boolean hasTopLeftX()
public boolean hasTopLeftY()
public boolean hasWidth()
public boolean hasHeight()
public boolean hasType()
public boolean hasShape()
public boolean hasRotation()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public Landmark setMerchant(Reference merchant)
public Landmark setSection(Reference section)
public Landmark setType(LandmarkType type)
public Landmark setShape(LandmarkShape shape)
public void clearId()
public void clearName()
public void clearMerchant()
public void clearSection()
public void clearTopLeftX()
public void clearTopLeftY()
public void clearWidth()
public void clearHeight()
public void clearType()
public void clearShape()
public void clearRotation()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public Landmark copyChanges()
public void mergeChanges(Landmark src)