Class Landmark

    • Constructor Detail

      • Landmark

        public Landmark()
        Constructs a new empty instance.
      • Landmark

        protected Landmark​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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 interface JSONifiable
      • 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
      • setName

        public Landmark setName​(String name)
        Sets the field 'name'.
      • 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.
      • setTopLeftX

        public Landmark setTopLeftX​(Integer topLeftX)
        Sets the field 'topLeftX'.
      • setTopLeftY

        public Landmark setTopLeftY​(Integer topLeftY)
        Sets the field 'topLeftY'.
      • setWidth

        public Landmark setWidth​(Integer width)
        Sets the field 'width'.
      • setHeight

        public Landmark setHeight​(Integer height)
        Sets the field 'height'.
      • setRotation

        public Landmark setRotation​(Integer rotation)
        Sets the field 'rotation'.
      • setCreatedTime

        public Landmark setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setModifiedTime

        public Landmark setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • setDeletedTime

        public Landmark setDeletedTime​(Long deletedTime)
        Sets the field 'deletedTime'.
      • 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.