org.deegree.feature.xpath
Class FeatureXPathEvaluator

java.lang.Object
  extended by org.deegree.feature.xpath.FeatureXPathEvaluator
All Implemented Interfaces:
XPathEvaluator<Feature>

public class FeatureXPathEvaluator
extends Object
implements XPathEvaluator<Feature>

XPathEvaluator for Feature objects.

Version:
$Revision: 31748 $, $Date: 2011-09-05 13:09:26 +0200 (Mon, 05 Sep 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
FeatureXPathEvaluator(GMLVersion version)
          Creates a new FeatureXPathEvaluator instance.
 
Method Summary
static void enableCache()
          temporary hack to enable caching again
 TypedObjectNode[] eval(ElementNode element, ValueReference propName)
           
 TypedObjectNode[] eval(Feature context, ValueReference propName)
          Returns the values that are selected by evaluating the given XPath 1.0 expression using the context object.
 TypedObjectNode[] eval(Property element, ValueReference propName)
           
 TypedObjectNode[] eval(TypedObjectNode particle, ValueReference path)
           
 String getId(Feature context)
          Returns the identifier of the given context object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureXPathEvaluator

public FeatureXPathEvaluator(GMLVersion version)
Creates a new FeatureXPathEvaluator instance.

Parameters:
version - gml version (determines the names and types of GML standard properties), must not be null
Method Detail

enableCache

public static void enableCache()
temporary hack to enable caching again


eval

public TypedObjectNode[] eval(TypedObjectNode particle,
                              ValueReference path)
                       throws FilterEvaluationException
Throws:
FilterEvaluationException

eval

public TypedObjectNode[] eval(Feature context,
                              ValueReference propName)
                       throws FilterEvaluationException
Description copied from interface: XPathEvaluator
Returns the values that are selected by evaluating the given XPath 1.0 expression using the context object.

Specified by:
eval in interface XPathEvaluator<Feature>
Parameters:
context - object that the expression is evaluated upon, must not be null
propName - value reference, must not be null
Returns:
the selected values, never null and contains at least one entry
Throws:
FilterEvaluationException - if an exception occurs during the evaluation of the XPath expression

eval

public TypedObjectNode[] eval(ElementNode element,
                              ValueReference propName)
                       throws FilterEvaluationException
Throws:
FilterEvaluationException

eval

public TypedObjectNode[] eval(Property element,
                              ValueReference propName)
                       throws FilterEvaluationException
Throws:
FilterEvaluationException

getId

public String getId(Feature context)
Description copied from interface: XPathEvaluator
Returns the identifier of the given context object.

Specified by:
getId in interface XPathEvaluator<Feature>
Parameters:
context - context object, never null
Returns:
the identifier, can be null


Copyright © 2011. All Rights Reserved.