element as
defined in the Expression DTD.
- Version:
- 07.08.2002
- Author:
- Markus Schneider
| Fields inherited from class org.deegree_impl.services.wfs.filterencoding.Expression_Impl |
id |
|
Method Summary |
static Expression |
buildFromDOM(org.w3c.dom.Element element)
Given a DOM-fragment, a corresponding Expression-object is built. |
java.lang.Object |
evaluate(Feature feature)
Returns this ArithmeticExpression/tt>'s value (to be used in the
evaluation of complex Expressions).
|
Expression |
getFirstExpression()
returns the first expression |
Expression |
getSecondExpression()
returns the second expression |
java.lang.StringBuffer |
toXML()
Produces an indented XML representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expr1
Expression expr1
- The first operand.
expr2
Expression expr2
- The second operand.
ArithmeticExpression
public ArithmeticExpression(int id,
Expression expr1,
Expression expr2)
- Constructs a new ArithmeticExpression.
buildFromDOM
public static Expression buildFromDOM(org.w3c.dom.Element element)
throws FilterConstructionException
- Given a DOM-fragment, a corresponding Expression-object is built. This method
recursively calls other buildFromDOM () - methods to validate the structure
of the DOM-fragment.
- Throws:
FilterConstructionException - if the structure of the DOM-fragment is invalid
toXML
public java.lang.StringBuffer toXML()
- Produces an indented XML representation of this object.
- Specified by:
toXML in interface Expression- Specified by:
toXML in class Expression_Impl
evaluate
public java.lang.Object evaluate(Feature feature)
throws FilterEvaluationException
- Returns this ArithmeticExpression/tt>'s value (to be used in the
evaluation of complex Expressions).
TODO: Improve datatype handling.
- Parameters:
feature - that determines the concrete values of
PropertyNames in the expression
- Returns:
- the resulting value (as Double)
- Throws:
FilterEvaluationException - if the evaluation fails
getFirstExpression
public Expression getFirstExpression()
- returns the first expression
getSecondExpression
public Expression getSecondExpression()
- returns the second expression