|
|||||||||
| 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.DateProperty
public class DateProperty
This class represents a property whose value is a java.util.Date.
| Nested Class Summary | |
|---|---|
static class |
DateProperty.WebCacheDateProperty
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 Date |
MAX_VALUE
he constant December 31, 9999 |
static Date |
MIN_VALUE
The constant January 01, 1900 |
static Date |
VALUE_NOT_SET
When used as the value of a DateProperty, indicates that the value has not been set. |
| Method Summary | |
|---|---|
Date |
getDefaultValue()
Returns the default Date 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. |
Date |
getMaxValue()
Returns the maximum Date value for this Property or MIN_VALUE if none has been specified |
Date |
getMinValue()
Returns the minimum Date 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 |
boolean |
isSortByTextValueSupported()
Returns true if this property supports GroupInfo.SortbyTextValue for the specified Query Operator |
QueryPart |
newQueryPart(QueryPart.Relation relation,
Date value)
Creates a new query expression that tests this property against a DateTime value. |
QueryPart |
newQueryPart(QueryPart.Relation relation,
TimeSpan value)
Returns a new QueryPart that tests this property against the given value using the given query relation |
void |
setDefaultValue(Date value)
Sets the default Date value for this Property |
void |
setMaxValue(Date value)
Sets the maximum Date value for this Property |
void |
setMinValue(Date value)
Sets the minimum Date 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 Date VALUE_NOT_SET
public static final Date MIN_VALUE
public static final Date MAX_VALUE
| Method Detail |
|---|
public java.lang.String getDisplayValue(java.lang.Object value)
getDisplayValue in class Propertyvalue - A legal value for this property.
public Date getDefaultValue()
public void setDefaultValue(Date value)
value - the default Date value for this Propertypublic Date getMinValue()
public void setMinValue(Date value)
value - the minimum Date value for this Propertypublic Date getMaxValue()
public void setMaxValue(Date value)
value - the maximum Date 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 boolean isSortByTextValueSupported()
isSortByTextValueSupported in class Property
public QueryPart newQueryPart(QueryPart.Relation relation,
Date value)
relation - The query relation.value - The Date 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_WEEKS
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||