|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.filterencoding.Expression org.deegree.model.filterencoding.ArithmeticExpression
public class ArithmeticExpression
Encapsulates the information of a <Add> / <Sub>/ <Mul> or <DIV> element as defined in the Expression DTD.
Field Summary | |
---|---|
(package private) Expression |
expr1
The first operand. |
(package private) Expression |
expr2
The second operand. |
Fields inherited from class org.deegree.model.filterencoding.Expression |
---|
id |
Constructor Summary | |
---|---|
ArithmeticExpression(int id,
Expression expr1,
Expression expr2)
Constructs a new ArithmeticExpression. |
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 org.deegree.model.filterencoding.Expression |
---|
getExpressionId, getExpressionName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Expression expr1
Expression expr2
Constructor Detail |
---|
public ArithmeticExpression(int id, Expression expr1, Expression expr2)
id
- expr1
- expr2
- Method Detail |
---|
public static Expression buildFromDOM(org.w3c.dom.Element element) throws FilterConstructionException
element
-
FilterConstructionException
- if the structure of the DOM-fragment is invalidpublic java.lang.StringBuffer toXML()
toXML
in class Expression
public java.lang.Object evaluate(Feature feature) throws FilterEvaluationException
evaluate
in class Expression
feature
- that determines the concrete values of
PropertyNames in the expression
FilterEvaluationException
- if the expressions are not numericalpublic Expression getFirstExpression()
public Expression getSecondExpression()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org