|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(Element element)
Given a DOM-fragment, a corresponding Expression-object is built. |
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 |
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(Element element)
throws FilterConstructionException
element -
FilterConstructionException - if the structure of the DOM-fragment is invalidpublic StringBuffer toXML()
toXML in class Expression
public Object evaluate(Feature feature)
throws FilterEvaluationException
evaluate in class Expressionfeature - that determines the concrete values of
PropertyNames in the expression
FilterEvaluationException - if the expressions are not numericalpublic Expression getFirstExpression()
public Expression getSecondExpression()
|
deegree 2.3 (2010/04/09 10:10 build-4-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