Package globus.glmap

Class GLMapRelation

java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapRelation
All Implemented Interfaces:
GLMapTagsContainer

public class GLMapRelation extends GLNativeObject implements GLMapTagsContainer
GLMapRelation is a bridge class, to work with GLMap internal representation of relation.
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • createFromJSONOrError

      @Nullable public static Object createFromJSONOrError(@Nullable String json)
      Creates an array of GLMapVectorObject from string
      Parameters:
      json - source string with geo JSON data
      Returns:
      objects constructed from geo JSON data
    • asJSON

      @Nullable public String asJSON()
      Serialize object as GeoJSON
      Returns:
      GeoJSON string
    • setValueForKey

      public void setValueForKey(@NonNull String key, @Nullable String value)
      Description copied from interface: GLMapTagsContainer
      Sets value for key
      Specified by:
      setValueForKey in interface GLMapTagsContainer
      Parameters:
      key - Key of value
      value - value to set
    • valueForKey

      @Nullable public GLMapValue valueForKey(@NonNull String key)
      Description copied from interface: GLMapTagsContainer
      Returns value for the key
      Specified by:
      valueForKey in interface GLMapTagsContainer
      Parameters:
      key - Key of requested value
      Returns:
      value associated with given key. (if loaded from geo JSON get values from "properties" section)
    • valuesForKey

      @Nullable public GLMapValue[] valuesForKey(@NonNull String key)
      Description copied from interface: GLMapTagsContainer
      Returns values for the key
      Specified by:
      valuesForKey in interface GLMapTagsContainer
      Parameters:
      key - Key of requested values
      Returns:
      array of values associated with given key
    • localizedName

      @Nullable public GLMapValue localizedName(@NonNull GLMapLocaleSettings localeSettings)
      Description copied from interface: GLMapTagsContainer
      Returns localized name.
      Specified by:
      localizedName in interface GLMapTagsContainer
      Parameters:
      localeSettings - locale settings to use
      Returns:
      name of object
    • copyProperties

      public void copyProperties(GLMapTagsContainer other)
      Description copied from interface: GLMapTagsContainer
      Copies all properties from another tags container object.
      Specified by:
      copyProperties in interface GLMapTagsContainer
      Parameters:
      other - Other tags container.