|
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 InitializablePropertyinitPropertyCreated in class AbstractPropertypublic void initBeanCreated(PropertyInit init)
initBeanCreated in interface InitializablePropertyinitBeanCreated in class AbstractPropertypublic java.lang.Class getPropertyType()
getPropertyType in interface Propertyprotected 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 PropertygetContentName in class AbstractPropertypublic java.lang.Class getContentType()
getContentType in interface PropertygetContentType in class AbstractPropertypublic 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 PropertytoObject in class AbstractPropertyProperty.toObject()public java.util.Collection toCollection()
CollectionProperty
toCollection in interface CollectionPropertyCollectionProperty.toCollection()public java.util.List toList()
ListProperty
toList in interface ListPropertyListProperty.toList()public java.lang.String toString()
toString in interface PropertytoString in class AbstractPropertypublic void set(java.lang.Object propertyValue)
PropertyIf 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 Propertyset in class AbstractPropertypropertyValue - 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.ListList.set(int,Object)public boolean add(java.lang.Object obj)
add in interface java.util.CollectionList.add(Object)
public void add(int index,
java.lang.Object obj)
add in interface java.util.ListList.add(int,Object)public boolean addAll(java.util.Collection coll)
addAll in interface java.util.CollectionList.addAll(Collection)
public boolean addAll(int index,
java.util.Collection coll)
addAll in interface java.util.ListList.addAll(int, Collection)public java.lang.Object remove(int index)
remove in interface java.util.ListList.remove(int)public boolean remove(java.lang.Object obj)
remove in interface java.util.CollectionList.remove(Object)public void clear()
clear in interface java.util.CollectionList.clear()public boolean removeAll(java.util.Collection coll)
removeAll in interface java.util.CollectionList.removeAll(Collection)public boolean retainAll(java.util.Collection coll)
retainAll in interface java.util.CollectionList.retainAll(Collection)public java.util.Iterator iterator()
iterator in interface java.util.CollectionList.iterator()public java.util.ListIterator listIterator()
listIterator in interface java.util.ListList.listIterator()public java.util.ListIterator listIterator(int startIndex)
listIterator in interface java.util.ListList.listIterator(int)public java.lang.Object get(int index)
get in interface java.util.ListList.get(int)public int size()
size in interface java.util.CollectionList.size()public boolean isEmpty()
isEmpty in interface java.util.CollectionList.isEmpty()public boolean contains(java.lang.Object obj)
contains in interface java.util.CollectionList.contains(Object)public java.lang.Object[] toArray()
toArray in interface java.util.CollectionList.toArray()public java.lang.Object[] toArray(java.lang.Object[] type)
toArray in interface java.util.CollectionList.toArray(Object[])public boolean containsAll(java.util.Collection coll)
containsAll in interface java.util.CollectionList.containsAll(Collection)public int indexOf(java.lang.Object obj)
indexOf in interface java.util.ListList.indexOf(Object)public int lastIndexOf(java.lang.Object obj)
lastIndexOf in interface java.util.ListList.lastIndexOf(Object)
public java.util.List subList(int startIndex,
int endIndex)
subList in interface java.util.ListList.subList(int, int)
|
Joda System API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||