org.alfresco.repo.attributes
Class ListAttributeImpl
java.lang.Object
org.alfresco.repo.attributes.AbstractAttribute
org.alfresco.repo.attributes.AttributeImpl
org.alfresco.repo.attributes.ListAttributeImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, Attribute, ListAttribute
public class ListAttributeImpl
- extends AttributeImpl
- implements ListAttribute
Persistent implementation of a list attribute.
- See Also:
- Serialized Form
| Methods inherited from class org.alfresco.repo.attributes.AbstractAttribute |
entrySet, get, getAttributeImpl, getAttributeValue, getBlobValue, getBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getSerializableValue, getShortValue, getStringValue, keySet, put, remove, setBlobValue, setBooleanValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setSerializableValue, setShortValue, setStringValue, 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 |
entrySet, get, getAcl, getAttributeImpl, getAttributeValue, getBlobValue, getBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getSerializableValue, getShortValue, getStringValue, keySet, put, remove, setAcl, setBlobValue, setBooleanValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setSerializableValue, setShortValue, setStringValue, values |
ListAttributeImpl
public ListAttributeImpl()
ListAttributeImpl
public ListAttributeImpl(ListAttribute other)
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
add
public void add(Attribute attr)
- Description copied from class:
AbstractAttribute
ListAttributeValue-specific method.
- Specified by:
add in interface Attribute- Overrides:
add in class AbstractAttribute
add
public void add(int index,
Attribute attr)
- Description copied from class:
AbstractAttribute
ListAttributeValue-specific method.
- Specified by:
add in interface Attribute- Overrides:
add in class AbstractAttribute
- Parameters:
index - The offset.attr - The attribute.
clear
public void clear()
- Description copied from class:
AbstractAttribute
MapAttributeValue-specific method.
- Specified by:
clear in interface Attribute- Overrides:
clear in class AbstractAttribute
get
public Attribute get(int index)
- Description copied from class:
AbstractAttribute
ListAttributeValue-specific method.
- Specified by:
get in interface Attribute- Overrides:
get in class AbstractAttribute
- Parameters:
index - The offset.
- Returns:
- The Attribute or null.
iterator
public java.util.Iterator iterator()
- Description copied from class:
AbstractAttribute
ListAttributeValue-specific method.
- Specified by:
iterator in interface java.lang.Iterable- Specified by:
iterator in interface Attribute- Overrides:
iterator in class AbstractAttribute
size
public int size()
- Description copied from class:
AbstractAttribute
ListAttributeValue or MapAttributeValue-specific method.
- Specified by:
size in interface Attribute- Overrides:
size in class AbstractAttribute
- Returns:
remove
public void remove(int index)
- Description copied from class:
AbstractAttribute
ListAttributeValue-specific method.
- Specified by:
remove in interface Attribute- Overrides:
remove in class AbstractAttribute
- Parameters:
index - The entry to remove.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
set
public void set(int index,
Attribute value)
- Description copied from class:
AbstractAttribute
ListAttributeValue-specific method.
- Specified by:
set in interface Attribute- Overrides:
set in class AbstractAttribute
- Parameters:
index - The index to set.value - The attribute to set.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.