|
|||||||||
| 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.TimeSpanProperty
public class TimeSpanProperty
Description: Represents a TimeSpan Property
| Nested Class Summary | |
|---|---|
static class |
TimeSpanProperty.WebCacheTimeSpanProperty
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 java.lang.String |
DEFAULT_TIMESPAN_DISPLAYFORMAT
|
static TimeSpan |
DEFAULT_TIMESPAN_UNITS
|
static TimeSpan |
MAX_VALUE
|
static TimeSpan |
MIN_VALUE
|
static TimeSpan |
ZERO
|
| Method Summary | |
|---|---|
TimeSpan |
getDefaultValue()
Returns the default TimeSpan value for this Property |
java.lang.String |
getDisplayFormat()
returns the DisplayFormat for this TimeSpan 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. |
TimeSpan |
getMaxValue()
Returns the maximum TimeSpan value for this Property or MAX_VALUE if none has been specified |
TimeSpan |
getMinValue()
Returns the minimum TimeSpan value for this Property or MIN_VALUE if none has been specified |
TimeSpan |
getUnits()
returns the unit of measurement for this TimeSpan property |
QueryPart |
newQueryPart(QueryPart.Relation relation,
TimeSpan value)
Creates a new query expression that tests this property. |
void |
setDefaultValue(TimeSpan value)
Sets the default TimeSpan value for this Property |
void |
setDisplayFormat(java.lang.String format)
sets the DisplayFormat for this TimeSpan property |
void |
setMaxValue(TimeSpan value)
Sets the maximum TimeSpan value for this Property |
void |
setMinValue(TimeSpan value)
Sets the minimum TimeSpan value for this Property |
void |
setUnits(TimeSpan units)
sets the unit of measurement for this TimeSpan 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 TimeSpan ZERO
public static final TimeSpan MIN_VALUE
public static final TimeSpan MAX_VALUE
public static final TimeSpan DEFAULT_TIMESPAN_UNITS
public static final java.lang.String DEFAULT_TIMESPAN_DISPLAYFORMAT
| Method Detail |
|---|
public TimeSpan getDefaultValue()
public void setDefaultValue(TimeSpan value)
value - TimeSpanpublic TimeSpan getMinValue()
public void setMinValue(TimeSpan value)
value - TimeSpanpublic TimeSpan getMaxValue()
public void setMaxValue(TimeSpan value)
value - TimeSpanpublic 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 TimeSpan getUnits()
public void setUnits(TimeSpan units)
units - TimeSpanpublic java.lang.String getDisplayFormat()
public void setDisplayFormat(java.lang.String format)
format - String
public QueryPart newQueryPart(QueryPart.Relation relation,
TimeSpan value)
relation - The query relation.value - The TimeSpan value to be tested.
public 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 | ||||||||