|
||||||||||
| 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.StringProperty
@Immutable public class StringProperty
Represents a string value. This class implements the Term
interface; instances of this class can be used to dereference Resources.
| Constructor Summary | |
|---|---|
protected |
StringProperty(java.lang.String value)
|
| Method Summary | |
|---|---|
void |
checkRange(Range range)
Determine if the element satisfies the given range constraint. |
int |
compareTo(Term o)
|
java.lang.Integer |
getIndex()
Method to extract the Integer index for this Term. |
static StringProperty |
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.String |
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, wait, wait, wait |
| Methods inherited from interface org.quattor.pan.utils.Term |
|---|
equals, hashCode, toString |
| Constructor Detail |
|---|
protected StringProperty(java.lang.String value)
| Method Detail |
|---|
public static StringProperty 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 java.lang.String 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 | |||||||||