org.deegree.filter.expression.custom.se
Class StringPosition

java.lang.Object
  extended by org.deegree.filter.expression.custom.AbstractCustomExpression
      extended by org.deegree.filter.expression.custom.se.StringPosition
All Implemented Interfaces:
Expression, CustomExpression

public class StringPosition
extends AbstractCustomExpression

StringPosition

Version:
$Revision: 31400 $, $Date: 2011-08-02 10:11:48 +0200 (Tue, 02 Aug 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.filter.Expression
Expression.Type
 
Constructor Summary
StringPosition()
           
StringPosition(StringBuffer lookup, Continuation<StringBuffer> lookupContn, StringBuffer value, Continuation<StringBuffer> contn, boolean forward)
           
 
Method Summary
<T> TypedObjectNode[]
evaluate(T obj, XPathEvaluator<T> xpathEvaluator)
          Determines the values of the expression for the given context object.
 QName getElementName()
          Returns the element name used for encoding this expression.
 StringPosition parse(XMLStreamReader in)
           
 
Methods inherited from class org.deegree.filter.expression.custom.AbstractCustomExpression
getParams, getType, parse100, parse110, parse200, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPosition

public StringPosition()

StringPosition

public StringPosition(StringBuffer lookup,
                      Continuation<StringBuffer> lookupContn,
                      StringBuffer value,
                      Continuation<StringBuffer> contn,
                      boolean forward)
Parameters:
lookup -
lookupContn -
value -
contn -
forward -
Method Detail

getElementName

public QName getElementName()
Description copied from interface: CustomExpression
Returns the element name used for encoding this expression.

Returns:
the element name of the expression, never null

evaluate

public <T> TypedObjectNode[] evaluate(T obj,
                                      XPathEvaluator<T> xpathEvaluator)
                           throws FilterEvaluationException
Description copied from interface: Expression
Determines the values of the expression for the given context object.

Note that this returns an TypedObjectNode[], as an expression may evaluate to multiple values, e.g. a ValueReference that targets a multi property of a feature.

Type Parameters:
T - type of the context object
Parameters:
obj - object that the expression is evaluated upon, must not be null
xpathEvaluator - used for evaluation of XPath expressions, must not be null
Returns:
the values of the expression, may be empty (and even contain null values), but never null
Throws:
FilterEvaluationException

parse

public StringPosition parse(XMLStreamReader in)
                     throws XMLStreamException
Specified by:
parse in class AbstractCustomExpression
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.