|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iphrase.runtime.query.Feature | +--com.iphrase.runtime.query.constraint.Constraint | +--com.iphrase.runtime.query.constraint.DateTime
Represent constraints for datetime
feature types.
Inner Class Summary | |
static class |
DateTime.Eq
Constrain a feature to be equal to a particular date. |
static class |
DateTime.Gt
Constrain a feature to be greater than a particular date. |
static class |
DateTime.Gte
Constrain a feature to be greater than or equal to a particular date. |
static class |
DateTime.Lt
Constrain a feature to be less than a particular date. |
static class |
DateTime.Lte
Constrain a feature to be less than or equal to a particular date. |
static class |
DateTime.Neq
Constrain a feature to be not equal to a particular date. |
static class |
DateTime.Range
Represent a range-comparison DateTime constraint. |
Inner classes inherited from class com.iphrase.runtime.query.constraint.Constraint |
Constraint.Flags |
Method Summary | |
java.lang.String |
getConstraintSubType()
Determine subType representation of the non-range inequality constraints |
java.lang.Object |
getValue()
Get the value associated with this constraint. |
boolean |
matches(Constraint c)
Determine whether this Constraint matches another. |
static Constraint |
newInstance(java.lang.String state)
Attempt to create a new DateTime constraint from a OneStep serialization String . |
java.lang.String |
toString()
Serialize this constraint using the OneStep serialization format. |
Methods inherited from class com.iphrase.runtime.query.constraint.Constraint |
clearExplicit, clearHidden, clearNew, clearNotSerialized, clearPrePruned, clearRequired, clearState, equals, getConstraintLabel, getDisplayPrefix, getIsMentions, getState, getType, isExplicit, isHidden, isMentions, isNew, isNotSerialized, isPrePruned, isRangeConstraintType, isRequired, newInstance, newInstance, setExplicit, setHidden, setHidden, setNew, setNotSerialized, setPrePruned, setRequired, setState |
Methods inherited from class com.iphrase.runtime.query.Feature |
getId |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.Object getValue()
Constraint.getValue()
getValue
in class Constraint
public boolean matches(Constraint c)
matches
in class Constraint
c
- Constraint
to be matched against thistrue
if the two constraints are of the same type
and have identical fields except for their flags and label,
else false
.public java.lang.String getConstraintSubType()
getConstraintSubType
in class Constraint
public java.lang.String toString()
Object.toString()
toString
in class java.lang.Object
String
of this constraintpublic static Constraint newInstance(java.lang.String state) throws ArgumentError
String
.state
- OneStep serialization String
Constraint
instanceArgumentError
-
|
© Copyright 2005, 2006. IBM Corporation. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |