org.deegree.portal.standard.gazetteer
Class Hierarchy
java.lang.Object
org.deegree.portal.standard.gazetteer.Hierarchy
public class Hierarchy
- extends java.lang.Object
Constructor expects a document formated like
<Hierarchy name="MyGazetteer" address="http://localhost/deegree-gaz/services">
<Type name="Länder" freeSearch="true">
<FeatureType name="XYZ" namespace="http://www.deegree.org/app"/>
<Type name="Kreise" freeSearch="false">
<FeatureType name="ABC" namespace="http://www.deegree.org/app"/>
<Type name="Gemeinden" freeSearch="true">
<FeatureType name="MNO" namespace="http://www.deegree.org/app"/>
</Type>
</Type>
</Type>
</Hierarchy>
- Version:
- $Revision: 22457 $, $Date: 2010-02-09 12:58:22 +0100 (Di, 09 Feb 2010) $
- Author:
- Andreas Poth, last edited by: $Author: apoth $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Hierarchy
public Hierarchy(XMLFragment xml)
throws XMLParsingException
- Parameters:
xml
-
- Throws:
XMLParsingException
getRoot
public HierarchyNode getRoot()
- Returns:
- root node of a gazetteer hierarchy
getGazetteerAddress
public java.lang.String getGazetteerAddress()
- Returns:
- the gazetteerAddress
getName
public java.lang.String getName()
- Returns:
- the name
getParentOf
public HierarchyNode getParentOf(java.lang.String name)
- Parameters:
name
-
- Returns:
- parent node for
HierarchyNode
matching passed name
getChildOf
public HierarchyNode getChildOf(java.lang.String name)
- Parameters:
name
-
- Returns:
- child node for
HierarchyNode
matching passed name
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org