|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.filter.expression.Literal<V>
V
- type of the contained value, in most cases PrimitiveValue
public class Literal<V extends TypedObjectNode>
Expression
that has a constant value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.filter.Expression |
---|
Expression.Type |
Constructor Summary | |
---|---|
Literal(String value)
|
|
Literal(V value,
QName type)
Creates a new Literal instance. |
Method Summary | ||
---|---|---|
|
evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
Determines the values of the expression for the given context object. |
|
Expression[] |
getParams()
Returns the expression's paramters. |
|
Expression.Type |
getType()
Returns the type of expression. |
|
QName |
getTypeName()
Returns the name of the value type. |
|
V |
getValue()
Returns the literal's value. |
|
String |
toString(String indent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Literal(String value)
public Literal(V value, QName type)
Literal
instance.
value
- value of the literaltype
- name of the type, can be null
Method Detail |
---|
public V getValue()
public QName getTypeName()
null
(no explicit type information available)public Expression.Type getType()
Expression
Expression
.
getType
in interface Expression
public <T> TypedObjectNode[] evaluate(T obj, XPathEvaluator<T> xpathEvaluator)
Expression
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.
evaluate
in interface Expression
T
- type of the context objectobj
- object that the expression is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
null
values), but never
null
public String toString(String indent)
toString
in interface Expression
public Expression[] getParams()
Expression
getParams
in interface Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |