deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.ogcbase
Class PropertyPathFactory

java.lang.Object
  extended by org.deegree.ogcbase.PropertyPathFactory

public class PropertyPathFactory
extends Object

Factory class for PropertyPath and PropertyPathStep instances.

Since:
2.0
Version:
2.0, $Revision: 9344 $, $Date: 2007-12-27 17:21:56 +0100 (Do, 27 Dez 2007) $
Author:
Markus Schneider , last edited by: $Author: apoth $
See Also:
PropertyPath, PropertyPathStep

Constructor Summary
PropertyPathFactory()
           
 
Method Summary
static PropertyPathStep createAttributePropertyPathStep(QualifiedName attrName)
          Creates a new PropertyPathStep instance that selects the attribute with the given name.
static PropertyPath createPropertyPath(List<PropertyPathStep> steps)
          Creates a new PropertyPath instance with the specified steps.
static PropertyPath createPropertyPath(PropertyPath propertyPath, int fromIndex, int toIndex)
          Creates a new PropertyPath instance that consists of a subset of the steps from the given PropertyPath.
static PropertyPath createPropertyPath(QualifiedName elementName)
          Creates a new PropertyPath instance that consists of one element step.
static PropertyPathStep createPropertyPathStep(QualifiedName elementName)
          Creates a new PropertyPathStep instance that selects the element with the given name.
static PropertyPathStep createPropertyPathStep(QualifiedName elementName, int selectedIndex)
          Creates a new PropertyPathStep instance that selects the specified occurence of the element with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPathFactory

public PropertyPathFactory()
Method Detail

createPropertyPath

public static PropertyPath createPropertyPath(QualifiedName elementName)
Creates a new PropertyPath instance that consists of one element step.

Parameters:
elementName - name of selected element
Returns:
new PropertyPath instance

createPropertyPath

public static PropertyPath createPropertyPath(PropertyPath propertyPath,
                                              int fromIndex,
                                              int toIndex)
Creates a new PropertyPath instance that consists of a subset of the steps from the given PropertyPath.

Parameters:
propertyPath - original PropertyPath
fromIndex - index of the first step to be included
toIndex - index of the final step to be included
Returns:
new PropertyPath instance

createPropertyPath

public static PropertyPath createPropertyPath(List<PropertyPathStep> steps)
Creates a new PropertyPath instance with the specified steps.

Parameters:
steps - property path steps, may not be null
Returns:
new PropertyPath instance

createAttributePropertyPathStep

public static PropertyPathStep createAttributePropertyPathStep(QualifiedName attrName)
Creates a new PropertyPathStep instance that selects the attribute with the given name.

Parameters:
attrName - attribute to be selected
Returns:
new PropertyPathStep instance

createPropertyPathStep

public static PropertyPathStep createPropertyPathStep(QualifiedName elementName)
Creates a new PropertyPathStep instance that selects the element with the given name.

Parameters:
elementName - element to be selected
Returns:
new PropertyPathStep instance

createPropertyPathStep

public static PropertyPathStep createPropertyPathStep(QualifiedName elementName,
                                                      int selectedIndex)
Creates a new PropertyPathStep instance that selects the specified occurence of the element with the given name.

Parameters:
elementName - element to be selected
selectedIndex - occurence of the element
Returns:
new PropertyPathStep instance

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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