Package com.google.maps.android.data.kml
Class KmlContainer
- java.lang.Object
-
- com.google.maps.android.data.kml.KmlContainer
-
public class KmlContainer extends java.lang.ObjectRepresents a KML Document or Folder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContainerId()Gets the Container ID if it is specifiedjava.lang.Iterable<KmlContainer>getContainers()Gets an iterable of nested KmlContainersjava.lang.Iterable<KmlGroundOverlay>getGroundOverlays()Gets an iterable of KmlGroundOverlay objectsjava.lang.Iterable<KmlPlacemark>getPlacemarks()Gets an iterable of KmlPlacemarksjava.lang.Iterable<java.lang.String>getProperties()Gets an iterable of the properties hashmap entriesjava.lang.StringgetProperty(java.lang.String propertyName)Gets the value of a property based on the given keyKmlStylegetStyle(java.lang.String styleID)Gets a style based on an IDjava.lang.StringgetStyleIdFromMap(java.lang.String styleID)Gets a style Id from map based on an IDbooleanhasContainers()Gets whether the container has containersbooleanhasPlacemarks()Gets whether the container has any placemarksbooleanhasProperties()Gets whether the container has any propertiesbooleanhasProperty(java.lang.String keyValue)Gets whether the given key exists in the propertiesjava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-