|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.impl.AbstractModelElement | +--org.joda.property.impl.AbstractProperty | +--org.joda.property.impl.collection.AbstractListProperty
Standard implementation of a list.
Nested Class Summary |
Nested classes inherited from class org.joda.property.Property |
Property.Internal |
Constructor Summary | |
AbstractListProperty()
Constructor |
Method Summary | |
void |
add(int index,
java.lang.Object obj)
|
boolean |
add(java.lang.Object obj)
|
boolean |
addAll(java.util.Collection coll)
|
boolean |
addAll(int index,
java.util.Collection coll)
|
void |
clear()
|
boolean |
contains(java.lang.Object obj)
|
boolean |
containsAll(java.util.Collection coll)
|
protected abstract java.lang.Object |
convertListObject(java.lang.Object object)
Check whether the object is valid to add to the list. |
java.lang.Object |
get(int index)
|
java.lang.String |
getContentName()
Get the name of each of the values in the list |
java.lang.Class |
getContentType()
Get the type of each of the values in the list |
protected java.util.List |
getInternal()
Get the actual list |
java.lang.Class |
getPropertyType()
Get the type of the property. |
int |
indexOf(java.lang.Object obj)
|
void |
initBeanCreated(PropertyInit init)
Initialise the property after the bean is complete |
void |
initPropertyCreated(PropertyInit init)
Initialise the property after the constructor |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object obj)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int startIndex)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object obj)
|
boolean |
removeAll(java.util.Collection coll)
|
boolean |
retainAll(java.util.Collection coll)
|
java.lang.Object |
set(int index,
java.lang.Object obj)
|
void |
set(java.lang.Object propertyValue)
Set the property's value as an object. |
int |
size()
|
java.util.List |
subList(int startIndex,
int endIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] type)
|
java.util.Collection |
toCollection()
Get the collection underlying the property. |
java.util.List |
toList()
Get the list underlying the property. |
java.lang.Object |
toObject()
Get the property's value as an object. |
java.lang.String |
toString()
Get a debugging string of this object |
Methods inherited from class org.joda.property.impl.AbstractProperty |
addPropertyChangeListener, bean, checkArgumentNotNull, checkModifiable, checkValueNotNull, checkValueNotNull, cloneDeep, convertObject, createClonedProperty, data, equals, equalsValue, firePropertyChange, firePropertyChange, getPropertyName, getThis, hashCode, isModifiable, isNull, isReadOnly, populateClonedProperty, removePropertyChangeListener, setModifiable, setReadOnly, toDataString |
Methods inherited from class org.joda.property.impl.AbstractModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getPropertyName, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, setModifiable, setReadOnly |
Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Methods inherited from interface java.util.List |
equals, hashCode |
Constructor Detail |
public AbstractListProperty()
Method Detail |
public void initPropertyCreated(PropertyInit init)
initPropertyCreated
in interface InitializableProperty
initPropertyCreated
in class AbstractProperty
public void initBeanCreated(PropertyInit init)
initBeanCreated
in interface InitializableProperty
initBeanCreated
in class AbstractProperty
public java.lang.Class getPropertyType()
getPropertyType
in interface Property
protected java.util.List getInternal()
protected abstract java.lang.Object convertListObject(java.lang.Object object)
IllegalArgumentPropertyException
- if the argument
is unacceptable for adding to the listpublic java.lang.String getContentName()
getContentName
in interface Property
getContentName
in class AbstractProperty
public java.lang.Class getContentType()
getContentType
in interface Property
getContentType
in class AbstractProperty
public java.lang.Object toObject()
Property
This method has strong semantics such that where a and b are
properties of the same type, it must be true that:
b.set( a.toObject() );
a.equals(b);
In other words, the object contains all the data necessary to
recreate the property's value.
toObject
in interface Property
toObject
in class AbstractProperty
Property.toObject()
public java.util.Collection toCollection()
CollectionProperty
toCollection
in interface CollectionProperty
CollectionProperty.toCollection()
public java.util.List toList()
ListProperty
toList
in interface ListProperty
ListProperty.toList()
public java.lang.String toString()
toString
in interface Property
toString
in class AbstractProperty
public void set(java.lang.Object propertyValue)
Property
If a String is passed in, it can be parsed in various ways. If the results of toDataString() are passed in, it must reconstitute the original value.
set
in interface Property
set
in class AbstractProperty
propertyValue
- an Object to set the property's value toProperty.set(Object)
public java.lang.Object set(int index, java.lang.Object obj)
set
in interface java.util.List
List.set(int,Object)
public boolean add(java.lang.Object obj)
add
in interface java.util.Collection
List.add(Object)
public void add(int index, java.lang.Object obj)
add
in interface java.util.List
List.add(int,Object)
public boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Collection
List.addAll(Collection)
public boolean addAll(int index, java.util.Collection coll)
addAll
in interface java.util.List
List.addAll(int, Collection)
public java.lang.Object remove(int index)
remove
in interface java.util.List
List.remove(int)
public boolean remove(java.lang.Object obj)
remove
in interface java.util.Collection
List.remove(Object)
public void clear()
clear
in interface java.util.Collection
List.clear()
public boolean removeAll(java.util.Collection coll)
removeAll
in interface java.util.Collection
List.removeAll(Collection)
public boolean retainAll(java.util.Collection coll)
retainAll
in interface java.util.Collection
List.retainAll(Collection)
public java.util.Iterator iterator()
iterator
in interface java.util.Collection
List.iterator()
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
List.listIterator()
public java.util.ListIterator listIterator(int startIndex)
listIterator
in interface java.util.List
List.listIterator(int)
public java.lang.Object get(int index)
get
in interface java.util.List
List.get(int)
public int size()
size
in interface java.util.Collection
List.size()
public boolean isEmpty()
isEmpty
in interface java.util.Collection
List.isEmpty()
public boolean contains(java.lang.Object obj)
contains
in interface java.util.Collection
List.contains(Object)
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
List.toArray()
public java.lang.Object[] toArray(java.lang.Object[] type)
toArray
in interface java.util.Collection
List.toArray(Object[])
public boolean containsAll(java.util.Collection coll)
containsAll
in interface java.util.Collection
List.containsAll(Collection)
public int indexOf(java.lang.Object obj)
indexOf
in interface java.util.List
List.indexOf(Object)
public int lastIndexOf(java.lang.Object obj)
lastIndexOf
in interface java.util.List
List.lastIndexOf(Object)
public java.util.List subList(int startIndex, int endIndex)
subList
in interface java.util.List
List.subList(int, int)
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |