org.alfresco.repo.attributes
Class LongAttributeImpl

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

public class LongAttributeImpl
extends AttributeImpl
implements LongAttribute

Long valued attribute.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.attributes.Attribute
Attribute.Type
 
Constructor Summary
LongAttributeImpl()
           
LongAttributeImpl(long value)
           
LongAttributeImpl(LongAttribute attr)
           
 
Method Summary
 long getLongValue()
          Get the long value of a LongValue.
 java.io.Serializable getRawValue()
          Method to return the underlying raw data for possible conversion to the descired type.
 Attribute.Type getType()
           
 void setLongValue(long value)
          Set a long 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, getSerializableValue, getShortValue, getStringValue, iterator, keySet, put, remove, remove, set, setBlobValue, setBooleanValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setSerializableValue, setShortValue, setStringValue, 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, getSerializableValue, getShortValue, getStringValue, iterator, keySet, put, remove, remove, set, setAcl, setBlobValue, setBooleanValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setSerializableValue, setShortValue, setStringValue, size, values
 

Constructor Detail

LongAttributeImpl

public LongAttributeImpl()

LongAttributeImpl

public LongAttributeImpl(long value)

LongAttributeImpl

public LongAttributeImpl(LongAttribute 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

getLongValue

public long getLongValue()
Description copied from interface: Attribute
Get the long value of a LongValue.

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

setLongValue

public void setLongValue(long value)
Description copied from interface: Attribute
Set a long value.

Specified by:
setLongValue in interface Attribute
Overrides:
setLongValue 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.