|
||||||||||
| 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.SimpleConstraint
Abstract base class for simple (non-boolean) constraints.
| Field Summary | |
protected java.lang.String |
m_bucket
The bucket to constrain. |
protected Query.Field |
m_field
The field within the bucket to constrain, or null if the constraint is a bucket-level
constraint. |
protected java.lang.String |
m_operator
The constraint operator. |
| Fields inherited from class edu.ucsb.adl.middleware.Query.Constraint |
m_parent |
| Constructor Summary | |
Query.SimpleConstraint(java.lang.String bucket,
Query.Field field,
java.lang.String operator)
Constructs a SimpleConstraint. |
|
| Method Summary | |
protected java.lang.String |
commonFieldsToXML(int level)
Converts common constraint fields to XML. |
java.lang.String |
getBucket()
Returns the constraint bucket. |
Query.Field |
getField()
Returns the constraint field. |
java.lang.String |
getOperator()
Returns the constraint operator. |
| Methods inherited from class edu.ucsb.adl.middleware.Query.Constraint |
getParent, toHTML, toXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String m_bucket
protected Query.Field m_field
null if the constraint is a bucket-level
constraint.
protected java.lang.String m_operator
| Constructor Detail |
public Query.SimpleConstraint(java.lang.String bucket,
Query.Field field,
java.lang.String operator)
SimpleConstraint.
bucket - The bucket to constrain, e.g.,
"geographic-locations".field - The field to constrain, or null.operator - The constraint operator, e.g., "overlaps".
java.lang.NullPointerException - If bucket or operator are
null, or if field is
non-null and field.uri is
null.| Method Detail |
public java.lang.String getBucket()
public Query.Field getField()
null if the
constraint is a bucket-level constraint.public java.lang.String getOperator()
protected java.lang.String commonFieldsToXML(int level)
level - The current indentation level; should be nonnegative.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||