|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.ucsb.adl.middleware.Query.Constraint
|
+--edu.ucsb.adl.middleware.Query.BooleanConstraint
A boolean combination of two or more subconstraints.
| Field Summary | |
static int |
AND
Identifies the AND operator. |
static int |
AND_NOT
Identifies the AND NOT operator. |
static int |
OR
Identifies the OR operator. |
| Fields inherited from class edu.ucsb.adl.middleware.Query.Constraint |
m_parent |
| Constructor Summary | |
Query.BooleanConstraint(int operator,
Query.Constraint[] operands)
Constructs a BooleanConstraint. |
|
| Method Summary | |
Query.Constraint[] |
getOperands()
Returns the subconstraints. |
int |
getOperator()
Returns the boolean operator. |
java.lang.String |
toHTML(java.lang.String mapServerURL)
Converts the constraint to HTML. |
java.lang.String |
toXML(int level)
Converts the constraint to XML. |
| Methods inherited from class edu.ucsb.adl.middleware.Query.Constraint |
getParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int AND
AND operator.
public static final int OR
OR operator.
public static final int AND_NOT
AND NOT operator.
| Constructor Detail |
public Query.BooleanConstraint(int operator,
Query.Constraint[] operands)
BooleanConstraint.
operator - The boolean operator.operands - The subconstraints, which should not be modified after
calling this method.
java.lang.IllegalArgumentException - If operator is invalid, or if
operator is AND_NOT and
operands does not have exactly two elements,
or if otherwise operands has fewer than two
elements, or if any element of operands
already has a parent constraint.
java.lang.NullPointerException - If operands, or any element of
operands, is null.| Method Detail |
public int getOperator()
public Query.Constraint[] getOperands()
public java.lang.String toHTML(java.lang.String mapServerURL)
toHTML in class Query.ConstraintmapServerURL - The template URL of a map server or null.
<li> elements.public java.lang.String toXML(int level)
toXML in class Query.Constraintlevel - The current indentation level; should be nonnegative.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||