public class Expression extends Object implements Expression
Java class for Expression complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Expression">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.terrameta.org/plasma/query}Term" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
static String |
NOOP_EXPR_ID |
protected Expression |
parent |
protected List<Term> |
terms |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(QueryVisitor visitor) |
static Expression |
and()
Returns a simple 1-term expression containing a boolean
operator, AND.
|
Expression |
and(Expression other)
Concatenates the given expression onto this expression using
a logical 'and' operator.
|
static Expression |
between(Property prop,
Literal min,
Literal max)
Returns a 6 term expression, where
the given property is greater than or equal to the given 'min' literal,
and is less than or equal tothe given 'max' literal.
|
static Expression |
between(Property prop,
Object min,
Object max)
Returns a 6 term expression, where
the given property is greater than or equal to the given 'min' literal,
and is less than or equal tothe given 'max' literal.
|
static Expression |
between(String prop,
Object min,
Object max)
Returns a 6 term expression, where
the given property is greater than or equal to the given 'min' literal,
and is less than or equal tothe given 'max' literal.
|
static Expression |
between(String prop,
String[] path,
Object min,
Object max)
Returns a 6 term expression, where
the given property is greater than or equal to the given 'min' literal,
and is less than or equal tothe given 'max' literal.
|
static Expression |
eq(Property prop,
Literal literal)
Returns an expression where
the given property is equal to to the given literal.
|
static Expression |
eq(Property prop,
NullLiteral literal)
Returns an expression where
the given property is equal to to the given null-literal.
|
static Expression |
eq(Property prop,
Object literal)
Returns an expression where
the given property is equal to to the given literal.
|
static Expression |
eq(String prop,
Object object)
Returns an expression where
the given property is equal to to the given literal object.
|
static Expression |
eq(String prop,
String[] path,
Object object)
Returns an expression where
the given property is equal to to the given literal object.
|
static Expression |
eq(String prop,
String path,
Object object)
Returns an expression where
the given property is equal to to the given literal object.
|
static Expression |
exists(Property prop,
Query subquery) |
static Expression |
ge(Property prop,
Literal literal)
Returns an expression where
the given property is greater than or equal to to the given literal.
|
static Expression |
ge(Property prop,
Object literal)
Returns an expression where
the given property is greater than or equal to to the given literal.
|
static Expression |
ge(String prop,
Object literal)
Returns an expression where
the given property is greater than or equalt to to the given literal.
|
static Expression |
ge(String prop,
String[] path,
Object literal)
Returns an expression where
the given property is greater than or equal to to the given literal.
|
static Expression |
ge(String prop,
String path,
Object literal)
Returns an expression where
the given property is greater than or equal to to the given literal.
|
Expression |
getParent() |
List<Term> |
getTerms()
Gets the value of the terms property.
|
Expression |
group()
Places this expression within grouping operators
and returns the grouped expression.
|
static Expression |
gt(Property prop,
Literal literal)
Returns an expression where
the given property is greater than to the given literal.
|
static Expression |
gt(Property prop,
Object literal)
Returns an expression where
the given property is greated than to the given literal.
|
static Expression |
gt(String prop,
Object literal)
Returns an expression where
the given property is greated than to the given literal.
|
static Expression |
gt(String prop,
String[] path,
Object literal)
Returns an expression where
the given property is greated than to the given literal.
|
static Expression |
gt(String prop,
String path,
Object literal)
Returns an expression where
the given property is greated than to the given literal.
|
static Expression |
in(Property prop,
Query subquery)
Returns a subquery expression, where
the given property is found within the given subquery results collection.
|
static Expression |
in(String prop,
Query subquery)
Returns a subquery expression, where
the given property is found within the given subquery results collection.
|
static Expression |
in(String prop,
String[] path,
Query subquery)
Returns a subquery expression, where
the given property is found within the given subquery results collection.
|
boolean |
isGroup() |
boolean |
isNoOp() |
static Expression |
le(Property prop,
Literal literal)
Returns an expression where
the given property is less than or equal to to the given literal.
|
static Expression |
le(Property prop,
Object literal)
Returns an expression where
the given property is less than or equal to to the given literal.
|
static Expression |
le(String prop,
Object literal)
Returns an expression where
the given property is less than or equal to to the given literal.
|
static Expression |
le(String prop,
String[] path,
Object literal)
Returns an expression where
the given property is less than or equal to to the given literal.
|
static Expression |
le(String prop,
String path,
Object literal)
Returns an expression where
the given property is less than or equal to to the given literal.
|
static Expression |
left()
Returns a simple 1-term expression containing a group
operator, ).
|
static Expression |
like(Property prop,
Literal literal)
Returns a wildcard expression "triad", where
the given property is like the given literal, and the literal
may contain any number of wildcards, the wildcard character being '*'
|
static Expression |
like(Property prop,
Object literal)
Returns a wildcard expression "triad", where
the given property is like the given literal, and the literal
may contain any number of wildcards, the wildcard character being '*'
|
static Expression |
like(String prop,
Object literal)
Returns a wildcard expression "triad", where
the given property is like the given literal, and the literal
may contain any number of wildcards, the wildcard character being '*'
|
static Expression |
like(String prop,
String[] path,
Object literal)
Returns a wildcard expression "triad", where
the given property is like the given literal, and the literal
may contain any number of wildcards, the wildcard character being '*'
|
static Expression |
like(String prop,
String path,
Object literal)
Returns a wildcard expression "triad", where
the given property is like the given literal, and the literal
may contain any number of wildcards, the wildcard character being '*'
|
static Expression |
lt(Property prop,
Literal literal)
Returns an expression where
the given property is less than to the given literal.
|
static Expression |
lt(Property prop,
Object literal)
Returns an expression where
the given property is less than to the given literal.
|
static Expression |
lt(String prop,
Object literal)
Returns an expression where
the given property is less than to the given literal.
|
static Expression |
lt(String prop,
String[] path,
Object literal)
Returns an expression where
the given property is less than to the given literal.
|
static Expression |
lt(String prop,
String path,
Object literal)
Returns an expression where
the given property is less than to the given literal.
|
static Expression |
ne(Property prop,
Literal literal)
Returns an expression where
the given property is not equal to to the given literal.
|
static Expression |
ne(Property prop,
NullLiteral literal)
Returns an expression where
the given property is not equal to to the given null-literal.
|
static Expression |
ne(Property prop,
Object literal)
Returns an expression where
the given property is not equal to to the given literal.
|
static Expression |
ne(String prop,
Object literal)
Returns an expression where
the given property is not equal to to the given literal.
|
static Expression |
ne(String prop,
String[] path,
Object literal)
Returns an expression where
the given property is not equal to to the given literal.
|
static Expression |
ne(String prop,
String path,
Object literal)
Returns an expression where
the given property is not equal to to the given literal.
|
static Expression |
noOp() |
static Expression |
notIn(Property prop,
Query subquery)
Returns a subquery expression, where
the given property is not found within the given subquery results collection.
|
static Expression |
or()
Returns a simple 1-term expression containing a boolean
operator, OR.
|
Expression |
or(Expression other)
Concatenates the given expression onto this expression using
a logical 'or' operator.
|
static Expression |
right()
Returns a simple 1-term expression containing a group
operator, (.
|
static Expression |
valueOf(org.jaxen.expr.EqualityExpr expr) |
static Expression |
valueOf(org.jaxen.expr.LogicalExpr expr)
Factory method supporting Jaxen XAPTH logical expressions.
|
static Expression |
valueOf(org.jaxen.expr.RelationalExpr expr)
Factory method supporting Jaxen XAPTH relational expressions.
|
public static final String NOOP_EXPR_ID
protected transient Expression parent
protected String id
public Expression()
public Expression(Term term)
public Expression(Expression e1, Expression e2, Expression e3)
public Expression(Expression[] exprs)
public Expression(Property prop, ArithmeticOperator oper, Literal lit)
public Expression(Expression left, RelationalOperator oper, Expression right)
public Expression(Expression left, LogicalOperator oper, Expression right)
public Expression(GroupOperator right, Property prop, RelationalOperator oper, Literal lit)
public Expression(Property prop, RelationalOperator oper, Literal lit, GroupOperator left)
public Expression(GroupOperator right, Property prop, RelationalOperator oper, Literal lit, GroupOperator left)
public Expression(Property prop, RelationalOperator oper, Variable var)
public Expression(Property prop, RelationalOperator oper, Literal lit)
public Expression(Property prop, WildcardOperator oper, Literal lit)
public Expression(Property prop, RelationalOperator oper, NullLiteral lit)
public Expression(Property prop, SubqueryOperator oper, Query query)
public Expression(Property left, RelationalOperator oper, Property right)
public Expression(RelationalOperator oper)
public Expression(ArithmeticOperator oper)
public Expression(LogicalOperatorValues oper)
public Expression(GroupOperator oper)
public Expression(Property prop)
public Expression(Entity entity)
public Expression getParent()
public Expression and(Expression other)
Expressionand in interface Expressionother - the expressionpublic Expression or(Expression other)
Expressionor in interface Expressionother - the expressionpublic Expression group()
Expressiongroup in interface Expressionpublic boolean isGroup()
public static Expression eq(String prop, Object object)
prop - the propertyobject - the literalpublic static Expression eq(String prop, String[] path, Object object)
prop - the propertypath - the multi-element property pathobject - the literalpublic static Expression eq(String prop, String path, Object object)
prop - the propertypath - the single-element property pathobject - the literalpublic static Expression eq(Property prop, Literal literal)
prop - the propertyliteral - the literalpublic static Expression eq(Property prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression eq(Property prop, NullLiteral literal)
prop - the propertyobject - the literalpublic static Expression ne(String prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression ne(Property prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression ne(String prop, String path, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression ne(String prop, String[] path, Object literal)
prop - the propertypath - the multi-element property pathliteral - the literalpublic static Expression ne(Property prop, Literal literal)
prop - the propertyliteral - the literalpublic static Expression ne(Property prop, NullLiteral literal)
prop - the propertyliteral - the literalpublic static Expression gt(String prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression gt(Property prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression gt(String prop, String path, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression gt(String prop, String[] path, Object literal)
prop - the propertypath - the multi-element property pathliteral - the literalpublic static Expression gt(Property prop, Literal literal)
prop - the propertyliteral - the literalpublic static Expression ge(String prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression ge(String prop, String path, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression ge(String prop, String[] path, Object literal)
prop - the propertypath - the multi-element property pathliteral - the literalpublic static Expression ge(Property prop, Literal literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression ge(Property prop, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression lt(Property prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression lt(String prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression lt(String prop, String path, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression lt(String prop, String[] path, Object literal)
prop - the propertypath - the multi-element property pathliteral - the literalpublic static Expression lt(Property prop, Literal literal)
prop - the propertyliteral - the literalpublic static Expression le(String prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression le(Property prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression le(String prop, String path, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression le(String prop, String[] path, Object literal)
prop - the propertypath - the multi-element property pathliteral - the literalpublic static Expression le(Property prop, Literal literal)
prop - the propertyliteral - the literalpublic static Expression like(String prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression like(Property prop, Object literal)
prop - the propertyliteral - the literalpublic static Expression like(String prop, String path, Object literal)
prop - the propertypath - the single-element property pathliteral - the literalpublic static Expression like(String prop, String[] path, Object literal)
prop - the propertypath - the multi-element property pathliteral - the literalpublic static Expression like(Property prop, Literal literal)
prop - the propertyliteral - the literalpublic static Expression between(Property prop, Literal min, Literal max)
prop - the propertymin - the minimum literalmax - the maximum literalpublic static Expression between(String prop, Object min, Object max)
prop - the propertymin - the minimum literalmax - the maximum literalpublic static Expression between(Property prop, Object min, Object max)
prop - the propertymin - the minimum literalmax - the maximum literalpublic static Expression between(String prop, String[] path, Object min, Object max)
prop - the propertypath - the property pathmin - the minimum literalmax - the maximum literalpublic static Expression in(Property prop, Query subquery)
prop - the propertysubquery - the subquerypublic static Expression in(String prop, Query subquery)
prop - the propertysubquery - the subquerypublic static Expression in(String prop, String[] path, Query subquery)
prop - the propertypath - the pathsubquery - the subquerypublic static Expression notIn(Property prop, Query subquery)
prop - the propertysubquery - the subquerypublic static Expression exists(Property prop, Query subquery)
public static Expression and()
public static Expression or()
public static Expression left()
public static Expression right()
public static Expression valueOf(org.jaxen.expr.RelationalExpr expr)
expr - a Jaxen XAPTH relational expressionpublic static Expression valueOf(org.jaxen.expr.LogicalExpr expr)
expr - a Jaxen XAPTH logical expressionpublic static Expression valueOf(org.jaxen.expr.EqualityExpr expr)
public static Expression noOp()
public boolean isNoOp()
public List<Term> getTerms()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the terms property.
For example, to add a new item, do as follows:
getTerms().add(newItem);
Objects of the following type(s) are allowed in the list
Term
public void accept(QueryVisitor visitor)
Copyright © 2017. All rights reserved.