org.quattor.pan.dml.data
Class BooleanProperty

java.lang.Object
  extended by org.quattor.pan.dml.data.Element
      extended by org.quattor.pan.dml.data.PersistentElement
          extended by org.quattor.pan.dml.data.Property
              extended by 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

Field Summary
static BooleanProperty FALSE
           
static BooleanProperty TRUE
           
 
Method Summary
static BooleanProperty getInstance(boolean value)
           
static BooleanProperty getInstance(java.lang.Boolean value)
           
static BooleanProperty getInstance(java.lang.String value)
           
 java.lang.String getTypeAsString()
          All Elements must return a string describing its type.
 java.lang.Boolean getValue()
          Return the value of this property as an Object.
 java.lang.Object readResolve()
           
 
Methods inherited from class org.quattor.pan.dml.data.Property
equals, hashCode, toString
 
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
 

Field Detail

TRUE

public static final BooleanProperty TRUE

FALSE

public static final BooleanProperty FALSE
Method Detail

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.