org.alfresco.repo.attributes
Class BooleanAttributeValue

java.lang.Object
  extended by org.alfresco.repo.attributes.AbstractAttribute
      extended by org.alfresco.repo.attributes.AttributeValue
          extended by org.alfresco.repo.attributes.BooleanAttributeValue
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, Attribute, BooleanAttribute

public class BooleanAttributeValue
extends AttributeValue
implements BooleanAttribute

Value based implementation of a boolean attribute.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.attributes.Attribute
Attribute.Type
 
Constructor Summary
BooleanAttributeValue(boolean value)
           
BooleanAttributeValue(BooleanAttribute attr)
           
 
Method Summary
 boolean getBooleanValue()
          Get the value of a BooleanValue.
 java.io.Serializable getRawValue()
          Method to return the underlying raw data for possible conversion to the descired type.
 Attribute.Type getType()
           
 void setBooleanValue(boolean value)
          Set a boolean value.
 java.lang.String toString()
           
 
Methods inherited from class org.alfresco.repo.attributes.AttributeValue
getAcl, setAcl
 
Methods inherited from class org.alfresco.repo.attributes.AbstractAttribute
add, add, clear, entrySet, get, get, getAttributeImpl, getAttributeValue, getBlobValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getSerializableValue, getShortValue, getStringValue, iterator, keySet, put, remove, remove, set, setBlobValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setSerializableValue, setShortValue, setStringValue, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.attributes.Attribute
add, add, clear, entrySet, get, get, getAcl, getAttributeImpl, getAttributeValue, getBlobValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getSerializableValue, getShortValue, getStringValue, iterator, keySet, put, remove, remove, set, setAcl, setBlobValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setSerializableValue, setShortValue, setStringValue, size, values
 

Constructor Detail

BooleanAttributeValue

public BooleanAttributeValue(boolean value)

BooleanAttributeValue

public BooleanAttributeValue(BooleanAttribute attr)
Method Detail

getType

public Attribute.Type getType()
Specified by:
getType in interface Attribute
Returns:
the enumerated type

getRawValue

public java.io.Serializable getRawValue()
Description copied from interface: Attribute
Method to return the underlying raw data for possible conversion to the descired type.

Specified by:
getRawValue in interface Attribute
Returns:
Returns a raw data value

getBooleanValue

public boolean getBooleanValue()
Description copied from interface: Attribute
Get the value of a BooleanValue.

Specified by:
getBooleanValue in interface Attribute
Overrides:
getBooleanValue in class AbstractAttribute
Returns:
The value.

setBooleanValue

public void setBooleanValue(boolean value)
Description copied from interface: Attribute
Set a boolean value.

Specified by:
setBooleanValue in interface Attribute
Overrides:
setBooleanValue in class AbstractAttribute
Parameters:
value - The value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.