Class KmlContainer


  • public class KmlContainer
    extends java.lang.Object
    Represents a KML Document or Folder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContainerId()
      Gets the Container ID if it is specified
      java.lang.Iterable<KmlContainer> getContainers()
      Gets an iterable of nested KmlContainers
      java.lang.Iterable<KmlGroundOverlay> getGroundOverlays()
      Gets an iterable of KmlGroundOverlay objects
      java.lang.Iterable<KmlPlacemark> getPlacemarks()
      Gets an iterable of KmlPlacemarks
      java.lang.Iterable<java.lang.String> getProperties()
      Gets an iterable of the properties hashmap entries
      java.lang.String getProperty​(java.lang.String propertyName)
      Gets the value of a property based on the given key
      KmlStyle getStyle​(java.lang.String styleID)
      Gets a style based on an ID
      java.lang.String getStyleIdFromMap​(java.lang.String styleID)
      Gets a style Id from map based on an ID
      boolean hasContainers()
      Gets whether the container has containers
      boolean hasPlacemarks()
      Gets whether the container has any placemarks
      boolean hasProperties()
      Gets whether the container has any properties
      boolean hasProperty​(java.lang.String keyValue)
      Gets whether the given key exists in the properties
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getContainerId

        public java.lang.String getContainerId()
        Gets the Container ID if it is specified
        Returns:
        Container ID or null if not set
      • getStyle

        public KmlStyle getStyle​(java.lang.String styleID)
        Gets a style based on an ID
      • getStyleIdFromMap

        public java.lang.String getStyleIdFromMap​(java.lang.String styleID)
        Gets a style Id from map based on an ID
      • getProperty

        public java.lang.String getProperty​(java.lang.String propertyName)
        Gets the value of a property based on the given key
        Parameters:
        propertyName - property key to find
        Returns:
        value of property found, null if key doesn't exist
      • hasProperties

        public boolean hasProperties()
        Gets whether the container has any properties
        Returns:
        true if there are properties, false otherwise
      • hasProperty

        public boolean hasProperty​(java.lang.String keyValue)
        Gets whether the given key exists in the properties
        Parameters:
        keyValue - property key to find
        Returns:
        true if key was found, false otherwise
      • hasContainers

        public boolean hasContainers()
        Gets whether the container has containers
        Returns:
        true if there are containers, false otherwise
      • getContainers

        public java.lang.Iterable<KmlContainer> getContainers()
        Gets an iterable of nested KmlContainers
        Returns:
        iterable of KmlContainers
      • getProperties

        public java.lang.Iterable<java.lang.String> getProperties()
        Gets an iterable of the properties hashmap entries
        Returns:
        iterable of the properties hashmap entries
      • getPlacemarks

        public java.lang.Iterable<KmlPlacemark> getPlacemarks()
        Gets an iterable of KmlPlacemarks
        Returns:
        iterable of KmlPlacemarks
      • hasPlacemarks

        public boolean hasPlacemarks()
        Gets whether the container has any placemarks
        Returns:
        true if there are placemarks, false otherwise
      • getGroundOverlays

        public java.lang.Iterable<KmlGroundOverlay> getGroundOverlays()
        Gets an iterable of KmlGroundOverlay objects
        Returns:
        iterable of KmlGroundOverlay objects
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object