Class Feature

    • Constructor Summary

      Constructors 
      Constructor Description
      Feature​(Geometry featureGeometry, java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> properties)
      Creates a new Feature object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Geometry getGeometry()
      Gets the geometry object
      java.lang.String getId()
      Gets the id of the feature
      java.lang.Iterable getProperties()
      Gets the property entry set
      java.lang.String getProperty​(java.lang.String property)
      Gets the value for a stored property
      java.lang.Iterable<java.lang.String> getPropertyKeys()
      Returns all the stored property keys
      boolean hasGeometry()
      Checks if the geometry is assigned
      boolean hasProperties()
      Gets whether the placemark has properties
      boolean hasProperty​(java.lang.String property)
      Checks whether the given property key exists
      • Methods inherited from class java.util.Observable

        addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Feature

        public Feature​(Geometry featureGeometry,
                       java.lang.String id,
                       java.util.Map<java.lang.String,​java.lang.String> properties)
        Creates a new Feature object
        Parameters:
        featureGeometry - type of geometry to assign to the feature
        id - common identifier of the feature
        properties - map containing properties related to the feature
    • Method Detail

      • getPropertyKeys

        public java.lang.Iterable<java.lang.String> getPropertyKeys()
        Returns all the stored property keys
        Returns:
        iterable of property keys
      • getProperties

        public java.lang.Iterable getProperties()
        Gets the property entry set
        Returns:
        property entry set
      • getProperty

        public java.lang.String getProperty​(java.lang.String property)
        Gets the value for a stored property
        Parameters:
        property - key of the property
        Returns:
        value of the property if its key exists, otherwise null
      • getId

        public java.lang.String getId()
        Gets the id of the feature
        Returns:
        id
      • hasProperty

        public boolean hasProperty​(java.lang.String property)
        Checks whether the given property key exists
        Parameters:
        property - key of the property to check
        Returns:
        true if property key exists, false otherwise
      • getGeometry

        public Geometry getGeometry()
        Gets the geometry object
        Returns:
        geometry object
      • hasProperties

        public boolean hasProperties()
        Gets whether the placemark has properties
        Returns:
        true if there are properties in the properties map, false otherwise
      • hasGeometry

        public boolean hasGeometry()
        Checks if the geometry is assigned
        Returns:
        true if feature contains geometry object, otherwise null