|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.filter.expression.PropertyName
public class PropertyName
Expression that usually just encodes the name of a property of an object, but may also contains an XPath 1.0
expression.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.filter.Expression |
|---|
Expression.Type |
| Constructor Summary | |
|---|---|
PropertyName(QName name)
Creates a new PropertyName instance that select a property of a MatchableObject. |
|
PropertyName(String text,
org.jaxen.NamespaceContext nsContext)
Creates a new PropertyName instance from an encoded XPath-expression and the namespace bindings. |
|
| Method Summary | |
|---|---|
Object[] |
evaluate(MatchableObject obj)
Determines the values of the expression for the given MatchableObject. |
QName |
getAsQName()
If the property name is simple, the element name is returned. |
org.jaxen.expr.Expr |
getAsXPath()
Returns the Jaxen representation of the XPath expression, which provides access to the syntax tree. |
org.jaxen.NamespaceContext |
getNsContext()
Returns the bindings for the namespaces used in the XPath expression. |
Expression[] |
getParams()
Returns the expression's paramters. |
String |
getPropertyName()
Returns the property name value (an XPath-expression). |
Expression.Type |
getType()
Returns the type of expression. |
boolean |
isSimple()
Returns whether the property name is simple, i.e. if it only contains of a single element step. |
void |
set(String text,
org.jaxen.NamespaceContext nsContext)
|
String |
toString()
|
String |
toString(String indent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyName(String text,
org.jaxen.NamespaceContext nsContext)
PropertyName instance from an encoded XPath-expression and the namespace bindings.
text - must be a valid XPath 1.0-expression, never nullnsContext - binding of the namespaces used in the XPath expressionpublic PropertyName(QName name)
PropertyName instance that select a property of a MatchableObject.
name - qualified name of the property, never null| Method Detail |
|---|
public void set(String text,
org.jaxen.NamespaceContext nsContext)
public org.jaxen.expr.Expr getAsXPath()
throws FilterEvaluationException
null if this PropertyName represents the empty string
FilterEvaluationException - if this PropertyName does not denote a valid XPath 1.0 expressionpublic String getPropertyName()
nullpublic QName getAsQName()
null if the property name is not simpleisSimple()public org.jaxen.NamespaceContext getNsContext()
nullpublic boolean isSimple()
true, if the property is simple, false otherwisepublic Expression.Type getType()
ExpressionExpression.
getType in interface Expression
public Object[] evaluate(MatchableObject obj)
throws FilterEvaluationException
ExpressionMatchableObject.
Note that this returns an Object[], as an expression may evaluate to multiple values, e.g. a
PropertyName that targets a multi property of a feature.
evaluate in interface Expressionobj - object that the expression is evaluated upon
null values), but never
null
FilterEvaluationExceptionpublic String toString()
toString in class Objectpublic String toString(String indent)
toString in interface Expressionpublic Expression[] getParams()
Expression
getParams in interface Expression
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||