org.quattor.pan.dml.data
Class BooleanProperty
java.lang.Object
org.quattor.pan.dml.data.Element
org.quattor.pan.dml.data.PersistentElement
org.quattor.pan.dml.data.Property
org.quattor.pan.dml.data.BooleanProperty
- All Implemented Interfaces:
- Operation
@Immutable
public final class BooleanProperty
- extends Property
Represents a boolean value. This implementation creates two static instances
representing TRUE and FALSE. Calls to the getInstance method simply return a
pointer to one of the static instances.
- Author:
- loomis
| Methods inherited from class org.quattor.pan.dml.data.Element |
checkInvalidSelfContext, checkRange, 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 |
TRUE
public static final BooleanProperty TRUE
FALSE
public static final BooleanProperty FALSE
getInstance
public static BooleanProperty getInstance(boolean value)
getInstance
public static BooleanProperty getInstance(java.lang.Boolean value)
getInstance
public static BooleanProperty getInstance(java.lang.String value)
readResolve
public java.lang.Object readResolve()
throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
getValue
public java.lang.Boolean getValue()
- Description copied from class:
Property
- Return the value of this property as an Object. Subclasses may override
this method to provide a more specific return type. Subclasses will have
to call this method to obtain the value because the value itself is
private.
- Overrides:
getValue in class Property
- Returns:
- value of this property as an Object
getTypeAsString
public java.lang.String getTypeAsString()
- Description copied from class:
Element
- All Elements must return a string describing its type. This value used in
the serialization to machine profiles.
- Specified by:
getTypeAsString in class Element
- Returns:
- String representation of Element's type
Copyright © 2011 Quattor. All Rights Reserved.