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 java.lang.Object
implements XPathEvaluator<Feature>

XPathEvaluator for Feature objects.

Version:
$Revision: 27703 $, $Date: 2010-11-01 20:10:39 +0100 (Mo, 01. Nov 2010) $
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(Feature context, PropertyName propName)
          Returns the values that are selected by evaluating the given XPath 1.0 expression using the context object.
 TypedObjectNode[] eval(GenericXMLElement element, PropertyName propName)
           
 TypedObjectNode[] eval(Property prop, PropertyName propName)
           
 java.lang.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(Feature context,
                              PropertyName 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 - XPath expression (usually selects a property, hence the name)
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(Property prop,
                              PropertyName propName)
                       throws FilterEvaluationException
Throws:
FilterEvaluationException

eval

public TypedObjectNode[] eval(GenericXMLElement element,
                              PropertyName propName)
                       throws FilterEvaluationException
Throws:
FilterEvaluationException

getId

public java.lang.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.