|
|||||||||
| 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.DoubleProperty
public class DoubleProperty
This class represents a property whose value is a double.
| Nested Class Summary | |
|---|---|
static class |
DoubleProperty.WebCacheDoubleProperty
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 double |
MAX_VALUE
The maximum legal value of a DoubleProperty. |
static double |
MIN_VALUE
The minimum legal value of a DoubleProperty. |
| Method Summary | |
|---|---|
double |
getDefaultValue()
Returns the default double 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. |
double |
getMaxValue()
Returns the maximum double value for this Property or MAX_VALUE if none has been specified |
double |
getMinValue()
Returns the minimum double value for this Property or MIN_VALUE if none has been specified |
boolean |
isRollupProperty()
Returns true if this Double Property is a rollup property The value of this property on a parent tree item would be the summation of the values of all its children This feature was introduced in the 14.0 server |
QueryPart |
newQueryPart(QueryPart.Relation relation,
double value)
Creates a new query expression that tests this property. |
void |
setDefaultValue(double value)
Sets the default double value for this Property |
void |
setMaxValue(double value)
Sets the maximum double value for this Property |
void |
setMinValue(double value)
Sets the minimum double value for this Property |
void |
setRollupProperty(boolean enable)
set this property to be a rollup property |
TimeSpanProperty |
toTimeSpanProperty(TimeSpan units)
Converts this DoubleProperty to a TimeSpanProperty. |
void |
update()
If this property is new or dirty, saves changes to the repository |
| 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 double MIN_VALUE
public static final double MAX_VALUE
| Method Detail |
|---|
public double getDefaultValue()
public void setDefaultValue(double value)
value - doublepublic double getMinValue()
public void setMinValue(double value)
value - doublepublic double getMaxValue()
public void setMaxValue(double value)
value - doublepublic 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 isRollupProperty()
public void setRollupProperty(boolean enable)
enable - true to set this property to be a rollup property
public QueryPart newQueryPart(QueryPart.Relation relation,
double value)
relation - The query relation.value - The value to be tested.
public java.lang.String getDisplayValue(java.lang.Object value)
getDisplayValue in class Propertyvalue - A legal value for this property.
public TimeSpanProperty toTimeSpanProperty(TimeSpan units)
The old DoubleProperty is replaced by the new TimeSpanProperty within the properties collection of the parent Type. The new property is dirty; to save changes, you must call Property.update(). The old property is invalid and should be discarded.
units - The amount of time represented by the value 1.0, as stored in
the repository
TimeSpanProperty,
Property.WebCacheProperty.update()public void update()
update in class Property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||