org.deegree.portal.standard.gazetteer
Class Hierarchy
java.lang.Object
  
org.deegree.portal.standard.gazetteer.Hierarchy
public class Hierarchy
- extends 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 (Tue, 09 Feb 2010) $
 
- Author:
 
  - Andreas Poth, last edited by: $Author: apoth $
 
 
 
 
Hierarchy
public Hierarchy(XMLFragment xml)
          throws XMLParsingException
 
 
- Parameters:
 xml - 
- Throws:
 XMLParsingException
getRoot
public HierarchyNode getRoot()
- Returns:
 - root node of a gazetteer hierarchy
 
 
getGazetteerAddress
public String getGazetteerAddress()
- Returns:
 - the gazetteerAddress
 
 
getName
public String getName()
- Returns:
 - the name
 
 
getParentOf
public HierarchyNode getParentOf(String name)
- Parameters:
 name - 
- Returns:
 - parent node for 
HierarchyNode matching passed name 
 
getChildOf
public HierarchyNode getChildOf(String name)
- Parameters:
 name - 
- Returns:
 - child node for 
HierarchyNode matching passed name 
 
toString
public String toString()
- Overrides:
 toString in class Object
 
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org