|
||||||||||
| 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
|
+--edu.ucsb.adl.middleware.Query.TemporalConstraint
A temporal constraint.
| Field Summary |
| Fields inherited from class edu.ucsb.adl.middleware.Query.SimpleConstraint |
m_bucket, m_field, m_operator |
| Fields inherited from class edu.ucsb.adl.middleware.Query.Constraint |
m_parent |
| Constructor Summary | |
Query.TemporalConstraint(java.lang.String bucket,
Query.Field field,
java.lang.String operator,
int begin,
int end)
Constructs a TemporalConstraint. |
|
| Method Summary | |
int |
getBegin()
Returns the target range begin date. |
int |
getEnd()
Returns the target range end date. |
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.SimpleConstraint |
commonFieldsToXML, getBucket, getField, getOperator |
| 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 |
| Constructor Detail |
public Query.TemporalConstraint(java.lang.String bucket,
Query.Field field,
java.lang.String operator,
int begin,
int end)
TemporalConstraint.
bucket - The bucket to constrain, e.g., "dates".field - The field to constrain, or null.operator - The constraint operator, e.g., "overlaps".begin - The begin date of the target date range using the encoding
yyyymmdd, e.g., 19980101.end - The end date of the target date range using the encoding
yyyymmdd, e.g., 19981231.
java.lang.IllegalArgumentException - If begin or end are invalid, or
if begin is later than end.
java.lang.NullPointerException - If bucket or operator are
null.| Method Detail |
public int getBegin()
yyyymmdd.public int getEnd()
yyyymmdd.public java.lang.String toHTML(java.lang.String mapServerURL)
toHTML in class Query.ConstraintmapServerURL - Unused.
<li> element.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 | |||||||||