|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.binding.Node
org.loom.binding.AbstractCollectionNode
public abstract class AbstractCollectionNode
| Constructor Summary | |
|---|---|
AbstractCollectionNode()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
addItemToList(java.lang.Object container,
java.lang.Object propertyList,
java.lang.String[] propertyPath,
int propertyIndex,
int listIndex)
Creates and add an item to the list if there is none there. |
protected void |
applyValidationImpl(java.lang.Object container,
ValidationRequest request)
Applies a validation. |
protected abstract java.lang.Object |
ensureCapacity(java.lang.Object container,
java.lang.Object collection,
int minSize)
Checks that the collection has at least the expected size. |
protected abstract java.lang.Object |
get(java.lang.Object list,
int index)
|
protected abstract int |
getSize(java.lang.Object list)
|
java.lang.Object |
getValue(java.lang.Object container,
java.lang.String[] propertyPath,
int propertyIndex)
Gets the value of the property at the end of this chain |
protected abstract void |
set(java.lang.Object list,
int index,
java.lang.Object item)
Adds an item to the list |
void |
setPropertyWrapper(PropertyWrapper wrapper)
|
void |
setValue(java.lang.Object container,
java.lang.Object value,
java.lang.String[] propertyPath,
int index)
Sets a value to the property at the end of this chain |
| Methods inherited from class org.loom.binding.Node |
|---|
applyValidation, getChild, getIndex, getIndexAsInt, getNextNodeClass, getPropertyName, getPropertyWrapper, isLeaf, setChild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCollectionNode()
| Method Detail |
|---|
public java.lang.Object getValue(java.lang.Object container,
java.lang.String[] propertyPath,
int propertyIndex)
Node
getValue in class Nodecontainer - The current property node (starts at the root of the chain)propertyPath - the full path to the requested propertypropertyIndex - the current index inside the property chain
public void setValue(java.lang.Object container,
java.lang.Object value,
java.lang.String[] propertyPath,
int index)
Node
setValue in class Nodecontainer - The current property node (starts at the root of the chain)value - the value to assignindex - the current index inside the property chain
protected java.lang.Object addItemToList(java.lang.Object container,
java.lang.Object propertyList,
java.lang.String[] propertyPath,
int propertyIndex,
int listIndex)
propertyList - the list of values of this propertypropertyPath - the property pathpropertyIndex - the current node index
protected abstract java.lang.Object ensureCapacity(java.lang.Object container,
java.lang.Object collection,
int minSize)
container - the instance that contains this collection propertycollection - the collection to checkminSize - the minimum size required
protected void applyValidationImpl(java.lang.Object container,
ValidationRequest request)
Node
applyValidationImpl in class Nodecontainer - the container where to apply this validation. It cannot be null.request - the validation to be performedprotected abstract int getSize(java.lang.Object list)
list - the List/array instance
protected abstract java.lang.Object get(java.lang.Object list,
int index)
protected abstract void set(java.lang.Object list,
int index,
java.lang.Object item)
public void setPropertyWrapper(PropertyWrapper wrapper)
setPropertyWrapper in class Nodewrapper - the propertyWrapper of this field.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||