org.alfresco.repo.attributes
Class ListAttributeValue
java.lang.Object
org.alfresco.repo.attributes.AbstractAttribute
org.alfresco.repo.attributes.AttributeValue
org.alfresco.repo.attributes.ListAttributeValue
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, Attribute, ListAttribute
public class ListAttributeValue
- extends AttributeValue
- implements ListAttribute
Value based implementation of a list attribute.
- See Also:
- Serialized Form
Methods inherited from class org.alfresco.repo.attributes.AbstractAttribute |
clear, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.attributes.Attribute |
clear, 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 |
ListAttributeValue
public ListAttributeValue()
ListAttributeValue
public ListAttributeValue(ListAttribute attr)
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.
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.
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.