|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.dml.data.Element
org.quattor.pan.dml.data.PersistentElement
org.quattor.pan.dml.data.Property
org.quattor.pan.dml.data.NumberProperty
org.quattor.pan.dml.data.DoubleProperty
@Immutable public final class DoubleProperty
Represents a double value.
| Method Summary | |
|---|---|
void |
checkRange(Range range)
Determine if the element satisfies the given range constraint. |
double |
doubleValue()
All number classes must implement this method which is used to facilitate type conversion in mixed-type, arithmetic expressions. |
static DoubleProperty |
getInstance(double value)
|
static DoubleProperty |
getInstance(java.lang.Double value)
|
static DoubleProperty |
getInstance(java.lang.String value)
|
java.lang.String |
getTypeAsString()
All Elements must return a string describing its type. |
java.lang.Double |
getValue()
Return the value of this property as an Object. |
| Methods inherited from class org.quattor.pan.dml.data.Property |
|---|
equals, hashCode, toString |
| Methods inherited from class org.quattor.pan.dml.data.Element |
|---|
checkInvalidSelfContext, checkRestrictedContext, checkValidReplacement, defined, duplicate, execute, exists, isBoolean, isDouble, isList, isLong, isNlist, isPersistent, isProperty, isProtected, isResource, isString, isTransient, locateUndefinedElement, protect, rget, rgetList, rput, writableCopy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static DoubleProperty getInstance(double value)
public static DoubleProperty getInstance(java.lang.Double value)
public static DoubleProperty getInstance(java.lang.String value)
public void checkRange(Range range)
throws ValidationException
Element
checkRange in class Elementrange - Range to check Element against
ValidationException - if the element cannot be compared to a range or if the
element doesn't meet the range requirementpublic double doubleValue()
NumberProperty
doubleValue in class NumberPropertypublic java.lang.Double getValue()
Property
getValue in class Propertypublic java.lang.String getTypeAsString()
Element
getTypeAsString in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||