|
||||||||||
| 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.LongProperty
@Immutable public final class LongProperty
Represents a long value. This implements the Term interface and
may be used to reference a resource.
| Method Summary | |
|---|---|
void |
checkRange(Range range)
Determine if the element satisfies the given range constraint. |
int |
compareTo(Term o)
|
double |
doubleValue()
All number classes must implement this method which is used to facilitate type conversion in mixed-type, arithmetic expressions. |
java.lang.Integer |
getIndex()
Method to extract the Integer index for this Term. |
static LongProperty |
getInstance(long value)
|
static LongProperty |
getInstance(java.lang.Long value)
|
static LongProperty |
getInstance(java.lang.String value)
|
java.lang.String |
getKey()
Method to extract the String key for this Term. |
java.lang.String |
getTypeAsString()
All Elements must return a string describing its type. |
java.lang.Long |
getValue()
Return the value of this property as an Object. |
boolean |
isKey()
A utility function to determine if this Term is a key (String value). |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.quattor.pan.utils.Term |
|---|
equals, hashCode, toString |
| Method Detail |
|---|
public static LongProperty getInstance(long value)
public static LongProperty getInstance(java.lang.Long value)
public static LongProperty 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.Long getValue()
Property
getValue in class Propertypublic java.lang.String getTypeAsString()
Element
getTypeAsString in class Elementpublic boolean isKey()
Term
isKey in interface Term
public java.lang.Integer getIndex()
throws InvalidTermException
Term
getIndex in interface TermInvalidTermException - thrown if the term is not an index; message should contain
the string value of the term that was used
public java.lang.String getKey()
throws InvalidTermException
Term
getKey in interface TermInvalidTermException - thrown if the term is not a key; message should contain the
string value of the term that was usedpublic int compareTo(Term o)
compareTo in interface java.lang.Comparable<Term>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||