Package globus.glmap

Class GLMapRelation

    • Method Detail

      • hashCode

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

        public boolean equals​(@Nullable
                              java.lang.Object other)
        Overrides:
        equals in class java.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: 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
                                      java.lang.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
                                         java.lang.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