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
GLMapRelationis a bridge class, to work with GLMap internal representation of relation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasJSON()Serialize object as GeoJSONstatic java.lang.ObjectcreateFromJSONOrError(java.lang.String json)Creates an array of GLMapVectorObject from stringbooleanequals(java.lang.Object other)inthashCode()GLMapValuelocalizedName(GLMapLocaleSettings localeSettings)Returns localized name.voidsetValueForKey(java.lang.String key, java.lang.String value)Sets value for keyGLMapValuevalueForKey(java.lang.String key)Returns value for the keyGLMapValue[]valuesForKey(java.lang.String key)Returns values for the key-
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
createFromJSONOrError
@Nullable public static java.lang.Object createFromJSONOrError(@Nullable java.lang.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 java.lang.String asJSON()
Serialize object as GeoJSON- Returns:
- GeoJSON string
-
setValueForKey
public void setValueForKey(@NonNull java.lang.String key, @Nullable java.lang.String value)Description copied from interface:GLMapTagsContainerSets value for key- Specified by:
setValueForKeyin interfaceGLMapTagsContainer- Parameters:
key- Key of valuevalue- value to set
-
valueForKey
@Nullable public GLMapValue valueForKey(@NonNull java.lang.String key)
Description copied from interface:GLMapTagsContainerReturns value for the key- Specified by:
valueForKeyin interfaceGLMapTagsContainer- 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 java.lang.String key)
Description copied from interface:GLMapTagsContainerReturns values for the key- Specified by:
valuesForKeyin interfaceGLMapTagsContainer- 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:GLMapTagsContainerReturns localized name.- Specified by:
localizedNamein interfaceGLMapTagsContainer- Parameters:
localeSettings- locale settings to use- Returns:
- name of object
-
-