deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.standard.gazetteer
Class Hierarchy

java.lang.Object
  extended by 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 $

Constructor Summary
Hierarchy(XMLFragment xml)
          
 
Method Summary
 HierarchyNode getChildOf(java.lang.String name)
           
 java.lang.String getGazetteerAddress()
           
 java.lang.String getName()
           
 HierarchyNode getParentOf(java.lang.String name)
           
 HierarchyNode getRoot()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hierarchy

public Hierarchy(XMLFragment xml)
          throws XMLParsingException
 
 

Parameters:
xml -
Throws:
XMLParsingException
Method Detail

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org