|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Property
com.starteam.ScalarProperty
com.starteam.DateTimeProperty
public class DateTimeProperty
This class represents a property whose value is a DateTime.
| Nested Class Summary | |
|---|---|
static class |
DateTimeProperty.WebCacheDateTimeProperty
Base accessor for cached SDK objects encapsulating the statefulness of objects obtained from the artifact cache. |
| Nested classes/interfaces inherited from class com.starteam.ScalarProperty |
|---|
ScalarProperty.WebCacheScalarProperty |
| Nested classes/interfaces inherited from class com.starteam.Property |
|---|
Property.MetaData, Property.WebCacheProperty |
| Field Summary | |
|---|---|
static DateTime |
MAX_VALUE
The maxnimum supported value of the DateTime class |
static DateTime |
MIN_VALUE
The minimum supported value of the DateTime class |
static DateTime |
VALUE_NOT_SET
When used as the value of a DateTimeProperty, indicates that the value has not been set. |
| Method Summary | |
|---|---|
DateTime |
getDefaultValue()
Returns the default DateTime value for this Property |
java.lang.String |
getDisplayValue(java.lang.Object value)
Converts the given property value to a string suitable for display. |
java.lang.Object |
getGenericMaxValue()
Gets the maximum allowable value of this property. |
java.lang.Object |
getGenericMinValue()
Gets the minimum allowable value of this property. |
DateTime |
getMaxValue()
Returns the maximum DateTime value for this Property or MAX_VALUE if none has been specified |
DateTime |
getMinValue()
Returns the minimum DateTime value for this Property or MIN_VALUE if none has been specified |
boolean |
isQueryRelationSupported(QueryPart.Relation operator)
Returns true if this property supports the specified query operator |
QueryPart |
newQueryPart(QueryPart.Relation relation,
DateTime value)
Creates a new query expression that tests this property against a DateTime value. |
QueryPart |
newQueryPart(QueryPart.Relation relation,
TimeSpan value)
Creates a new query expression that tests this property against a DateTime value. |
void |
setDefaultValue(DateTime value)
Sets the default DateTime value for this Property |
void |
setMaxValue(DateTime value)
Sets the minimum DateTime value for this Property |
void |
setMinValue(DateTime value)
Sets the minimum DateTime value for this Property |
| Methods inherited from class com.starteam.ScalarProperty |
|---|
setGenericMaxValue, setGenericMinValue |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DateTime VALUE_NOT_SET
public static final DateTime MIN_VALUE
public static final DateTime MAX_VALUE
| Method Detail |
|---|
public DateTime getDefaultValue()
public void setDefaultValue(DateTime value)
value - the default DateTime value for this Propertypublic DateTime getMinValue()
public void setMinValue(DateTime value)
value - the minimum DateTime value for this Propertypublic DateTime getMaxValue()
public void setMaxValue(DateTime value)
value - the minimum DateTime value for this Propertypublic java.lang.Object getGenericMinValue()
getGenericMinValue in class ScalarPropertyIntegerProperty.getMinValue(),
DoubleProperty.getMinValue(),
DateProperty.getMinValue(),
DateTimeProperty.getMinValue(),
LongIntegerProperty.getMinValue(),
TimeSpanProperty.getMinValue()public java.lang.Object getGenericMaxValue()
getGenericMaxValue in class ScalarPropertyIntegerProperty.getMaxValue(),
DoubleProperty.getMaxValue(),
DateProperty.getMaxValue(),
DateTimeProperty.getMaxValue(),
LongIntegerProperty.getMaxValue(),
TimeSpanProperty.getMaxValue()public boolean isQueryRelationSupported(QueryPart.Relation operator)
isQueryRelationSupported in class Propertyoperator - the query operator
public QueryPart newQueryPart(QueryPart.Relation relation,
DateTime value)
relation - The query relation.value - The DateTime value to be tested.
QueryPart.Relation.LESS_THAN,
QueryPart.Relation.LESS_THAN_OR_EQUAL_TO,
QueryPart.Relation.EQUAL_TO,
QueryPart.Relation.GREATER_THAN_OR_EQUAL_TO,
QueryPart.Relation.GREATER_THAN,
QueryPart.Relation.NOT_EQUAL_TO
public QueryPart newQueryPart(QueryPart.Relation relation,
TimeSpan value)
relation - The query relation.value - The TimeSpan value to be tested.
QueryPart.Relation.DATE_WITHIN_LAST_DAYS,
QueryPart.Relation.DATE_WITHIN_LAST_WEEKS,
QueryPart.Relation.DATE_OLDER_THAN_DAYS,
QueryPart.Relation.DATE_OLDER_THAN_WEEKSpublic java.lang.String getDisplayValue(java.lang.Object value)
getDisplayValue in class Propertyvalue - A legal value for this property.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||