org.geotools.catalog
Interface MetadataEntity.EntityType

Enclosing interface:
MetadataEntity

public static interface MetadataEntity.EntityType

Metadata schema description - the "type" of Metadata. Allow for progamatic introspection of the Metadata - provides the list of Elements.


Method Summary
 java.lang.Object getElement(java.lang.String xpath)
          The xPath is used to identify elements in the Metadata data hierarchy.
 java.util.List getElements()
          Get a List of all the elements this EntityType contains.
 

Method Detail

getElement

public java.lang.Object getElement(java.lang.String xpath)
The xPath is used to identify elements in the Metadata data hierarchy. If the xPath has wild cards a list of Metadata Elements will be returned.

Parameters:
xpath - an XPath statement that indicates 0 or more Elements.
Returns:
Null if no elements are found to match the xpath A Element if exactly one is found to match the xpath A List is many Elements are found to match the xpath.

getElements

public java.util.List getElements()
Get a List of all the elements this EntityType contains. Only the elements contained by the current EntityType are returned, in other words this method is not recursive, elements in sub-enties are not returned.

Returns:
a List of all the elements this EntityType contains.


Copyright © GeoTools. All Rights Reserved.