org.alfresco.repo.attributes
Class StringAttributeImpl

java.lang.Object
  extended by org.alfresco.repo.attributes.AbstractAttribute
      extended by org.alfresco.repo.attributes.AttributeImpl
          extended by org.alfresco.repo.attributes.StringAttributeImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, Attribute, StringAttribute

public class StringAttributeImpl
extends AttributeImpl
implements StringAttribute

Persistent implementation of String valued attribute.

See Also:
Serialized Form

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

Constructor Detail

StringAttributeImpl

public StringAttributeImpl()

StringAttributeImpl

public StringAttributeImpl(java.lang.String value)

StringAttributeImpl

public StringAttributeImpl(StringAttribute 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

getStringValue

public java.lang.String getStringValue()
Description copied from interface: Attribute
Get a String value from a StringValue.

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

setStringValue

public void setStringValue(java.lang.String value)
Description copied from interface: Attribute
Set a String value.

Specified by:
setStringValue in interface Attribute
Overrides:
setStringValue in class AbstractAttribute
Parameters:
value - The value to set.

toString

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


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