|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.query.model.Expression
public class 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.servicelabs.org/plasma/query}Term" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected java.lang.String |
id
|
protected Expression |
parent
|
protected java.util.List<Term> |
terms
|
| Method Summary | |
|---|---|
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,
java.lang.Object min,
java.lang.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(java.lang.String prop,
java.lang.Object min,
java.lang.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(java.lang.String prop,
java.lang.String[] path,
java.lang.Object min,
java.lang.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,
java.lang.Object literal)
Returns an expression where the given property is equal to to the given literal. |
static Expression |
eq(java.lang.String prop,
java.lang.Object object)
Returns an expression where the given property is equal to to the given literal object. |
static Expression |
eq(java.lang.String prop,
java.lang.String[] path,
java.lang.Object object)
Returns an expression where the given property is equal to to the given literal object. |
static Expression |
eq(java.lang.String prop,
java.lang.String path,
java.lang.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,
java.lang.Object literal)
Returns an expression where the given property is greater than or equal to to the given literal. |
static Expression |
ge(java.lang.String prop,
java.lang.Object literal)
Returns an expression where the given property is greater than or equalt to to the given literal. |
static Expression |
ge(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
Returns an expression where the given property is greater than or equal to to the given literal. |
static Expression |
ge(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
Returns an expression where the given property is greater than or equal to to the given literal. |
Expression |
getParent()
|
java.util.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,
java.lang.Object literal)
Returns an expression where the given property is greated than to the given literal. |
static Expression |
gt(java.lang.String prop,
java.lang.Object literal)
Returns an expression where the given property is greated than to the given literal. |
static Expression |
gt(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
Returns an expression where the given property is greated than to the given literal. |
static Expression |
gt(java.lang.String prop,
java.lang.String path,
java.lang.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(java.lang.String prop,
Query subquery)
Returns a subquery expression, where the given property is found within the given subquery results collection. |
static Expression |
in(java.lang.String prop,
java.lang.String[] path,
Query subquery)
Returns a subquery expression, where the given property is found within the given subquery results collection. |
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,
java.lang.Object literal)
Returns an expression where the given property is less than or equal to to the given literal. |
static Expression |
le(java.lang.String prop,
java.lang.Object literal)
Returns an expression where the given property is less than or equal to to the given literal. |
static Expression |
le(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
Returns an expression where the given property is less than or equal to to the given literal. |
static Expression |
le(java.lang.String prop,
java.lang.String path,
java.lang.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,
java.lang.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(java.lang.String prop,
java.lang.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(java.lang.String prop,
java.lang.String[] path,
java.lang.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(java.lang.String prop,
java.lang.String path,
java.lang.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,
java.lang.Object literal)
Returns an expression where the given property is less than to the given literal. |
static Expression |
lt(java.lang.String prop,
java.lang.Object literal)
Returns an expression where the given property is less than to the given literal. |
static Expression |
lt(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
Returns an expression where the given property is less than to the given literal. |
static Expression |
lt(java.lang.String prop,
java.lang.String path,
java.lang.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,
java.lang.Object literal)
Returns an expression where the given property is not equal to to the given literal. |
static Expression |
ne(java.lang.String prop,
java.lang.Object literal)
Returns an expression where the given property is not equal to to the given literal. |
static Expression |
ne(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
Returns an expression where the given property is not equal to to the given literal. |
static Expression |
ne(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
Returns an expression where the given property is not equal to to the given literal. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient Expression parent
protected java.lang.String id
protected java.util.List<Term> terms
| Constructor Detail |
|---|
public Expression()
public Expression(Term term)
public Expression(Term t1,
Term t2,
Term t3)
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(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,
Literal min,
Literal max)
public Expression(Property prop,
RelationalOperator oper,
NullLiteral lit)
public Expression(Property prop,
SubqueryOperator oper,
Query query)
public Expression(RelationalOperator oper)
public Expression(ArithmeticOperator oper)
public Expression(LogicalOperatorValues oper)
public Expression(GroupOperator oper)
public Expression(Property prop)
public Expression(Entity entity)
| Method Detail |
|---|
public Expression getParent()
public Expression and(Expression other)
Expression
and in interface Expressionother - the expression
public Expression or(Expression other)
Expression
or in interface Expressionother - the expression
public Expression group()
Expression
group in interface Expression
public static Expression eq(java.lang.String prop,
java.lang.Object object)
prop - the propertyobject - the literal
public static Expression eq(java.lang.String prop,
java.lang.String[] path,
java.lang.Object object)
prop - the propertypath - the multi-element property pathobject - the literal
public static Expression eq(java.lang.String prop,
java.lang.String path,
java.lang.Object object)
prop - the propertypath - the single-element property pathobject - the literal
public static Expression eq(Property prop,
Literal literal)
prop - the propertyliteral - the literal
public static Expression eq(Property prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression eq(Property prop,
NullLiteral literal)
prop - the propertyobject - the literal
public static Expression ne(java.lang.String prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression ne(Property prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression ne(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression ne(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
prop - the propertypath - the multi-element property pathliteral - the literal
public static Expression ne(Property prop,
Literal literal)
prop - the propertyliteral - the literal
public static Expression ne(Property prop,
NullLiteral literal)
prop - the propertyliteral - the literal
public static Expression gt(java.lang.String prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression gt(Property prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression gt(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression gt(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
prop - the propertypath - the multi-element property pathliteral - the literal
public static Expression gt(Property prop,
Literal literal)
prop - the propertyliteral - the literal
public static Expression ge(java.lang.String prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression ge(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression ge(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
prop - the propertypath - the multi-element property pathliteral - the literal
public static Expression ge(Property prop,
Literal literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression ge(Property prop,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression lt(Property prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression lt(java.lang.String prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression lt(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression lt(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
prop - the propertypath - the multi-element property pathliteral - the literal
public static Expression lt(Property prop,
Literal literal)
prop - the propertyliteral - the literal
public static Expression le(java.lang.String prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression le(Property prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression le(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression le(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
prop - the propertypath - the multi-element property pathliteral - the literal
public static Expression le(Property prop,
Literal literal)
prop - the propertyliteral - the literal
public static Expression like(java.lang.String prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression like(Property prop,
java.lang.Object literal)
prop - the propertyliteral - the literal
public static Expression like(java.lang.String prop,
java.lang.String path,
java.lang.Object literal)
prop - the propertypath - the single-element property pathliteral - the literal
public static Expression like(java.lang.String prop,
java.lang.String[] path,
java.lang.Object literal)
prop - the propertypath - the multi-element property pathliteral - the literal
public static Expression like(Property prop,
Literal literal)
prop - the propertyliteral - the literal
public static Expression between(Property prop,
Literal min,
Literal max)
prop - the propertymin - the minimum literalmax - the maximum literal
public static Expression between(java.lang.String prop,
java.lang.Object min,
java.lang.Object max)
prop - the propertymin - the minimum literalmax - the maximum literal
public static Expression between(Property prop,
java.lang.Object min,
java.lang.Object max)
prop - the propertymin - the minimum literalmax - the maximum literal
public static Expression between(java.lang.String prop,
java.lang.String[] path,
java.lang.Object min,
java.lang.Object max)
prop - the propertypath - the property pathmin - the minimum literalmax - the maximum literal
public static Expression in(Property prop,
Query subquery)
prop - the propertysubquery - the subquery
public static Expression in(java.lang.String prop,
Query subquery)
prop - the propertysubquery - the subquery
public static Expression in(java.lang.String prop,
java.lang.String[] path,
Query subquery)
prop - the propertypath - the pathsubquery - the subquery
public static Expression notIn(Property prop,
Query subquery)
prop - the propertysubquery - the subquery
public 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 expression
public static Expression valueOf(org.jaxen.expr.LogicalExpr expr)
expr - a Jaxen XAPTH logical expression
public static Expression valueOf(org.jaxen.expr.EqualityExpr expr)
public java.util.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||