@Immutable public final class LongProperty extends NumberProperty implements Term
Term interface and
may be used to reference a resource.isProperty| Modifier and Type | Method and Description |
|---|---|
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.
|
Integer |
getIndex()
Method to extract the Integer index for this Term.
|
static LongProperty |
getInstance(long value) |
static LongProperty |
getInstance(Long value) |
static LongProperty |
getInstance(String value) |
String |
getKey()
Method to extract the String key for this Term.
|
String |
getTypeAsString()
All Elements must return a string describing its type.
|
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).
|
checkInvalidSelfContext, checkRestrictedContext, checkValidReplacement, defined, duplicate, execute, exists, isBoolean, isDouble, isList, isLong, isNlist, isPersistent, isProperty, isProtected, isResource, isString, isTransient, locateUndefinedElement, protect, rget, rgetList, rput, writableCopypublic static LongProperty getInstance(long value)
public static LongProperty getInstance(Long value)
public static LongProperty getInstance(String value)
public void checkRange(Range range) throws ValidationException
ElementcheckRange in class Elementrange - Range to check Element againstValidationException - if the element cannot be compared to a range or if the
element doesn't meet the range requirementpublic double doubleValue()
NumberPropertydoubleValue in class NumberPropertypublic Long getValue()
Propertypublic String getTypeAsString()
ElementgetTypeAsString in class Elementpublic boolean isKey()
Termpublic Integer getIndex() throws InvalidTermException
TermgetIndex in interface TermInvalidTermException - thrown if the term is not an index; message should contain
the string value of the term that was usedpublic String getKey() throws InvalidTermException
TermgetKey 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 Comparable<Term>Copyright © 2014 Quattor. All Rights Reserved.