|
||||||||||
| 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
public abstract class Property
Property represents a simple primitive type (boolean, long, or string) in the pan language. All properties descend from PersistentElement which marks them as being valid elements for a final machine configuration. All Property instances must be immutable. This allows properties to be shared between threads and between machine configurations consequently reducing duplication and memory consumption. The constructors of all Property classes should be protected or private. All subclasses must implement a getInstance() method which returns an instance (possibly cached) of the Property.
| Constructor Summary | |
|---|---|
protected |
Property(java.lang.Object value)
This constructor should be used by subclasses to set the value of the property. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Require that all Elements implement an equals method. |
java.lang.Object |
getValue()
Return the value of this property as an Object. |
int |
hashCode()
Require that all Elements implement the hashCode method. |
java.lang.String |
toString()
Require that all Elements implement a reasonable toString method. |
| Methods inherited from class org.quattor.pan.dml.data.Element |
|---|
checkInvalidSelfContext, checkRange, checkRestrictedContext, checkValidReplacement, defined, duplicate, execute, exists, getTypeAsString, 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 |
| Constructor Detail |
|---|
protected Property(java.lang.Object value)
value - | Method Detail |
|---|
public java.lang.Object getValue()
public int hashCode()
Element
hashCode in class Elementpublic boolean equals(java.lang.Object o)
Element
equals in class Elementpublic java.lang.String toString()
Element
toString in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||