|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.binding.Node
public abstract class Node
A nesting level in a property path
| Constructor Summary | |
|---|---|
Node()
|
|
| Method Summary | |
|---|---|
void |
applyValidation(java.lang.Object container,
ValidationRequest request)
Applies validation to this node. |
protected abstract void |
applyValidationImpl(java.lang.Object container,
ValidationRequest request)
Applies a validation. |
Node |
getChild()
|
protected java.lang.String |
getIndex(java.lang.String nodeName)
Gets the index part of a node. |
protected int |
getIndexAsInt(java.lang.String nodeName)
Gets the index as Integer If there is no index, return -1 |
java.lang.Class<?> |
getNextNodeClass()
|
java.lang.String |
getPropertyName()
|
PropertyWrapper |
getPropertyWrapper()
|
abstract java.lang.Object |
getValue(java.lang.Object container,
java.lang.String[] propertyPath,
int index)
Gets the value of the property at the end of this chain |
boolean |
isLeaf()
|
void |
setChild(Node child)
|
void |
setPropertyWrapper(PropertyWrapper wrapper)
|
abstract 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
public abstract void setValue(java.lang.Object container,
java.lang.Object value,
java.lang.String[] propertyPath,
int index)
throws MalformedPropertyPathException
container - The current property node (starts at the root of the chain)value - the value to assignindex - the current index inside the property chain
MalformedPropertyPathException
public abstract java.lang.Object getValue(java.lang.Object container,
java.lang.String[] propertyPath,
int index)
throws MalformedPropertyPathException
container - The current property node (starts at the root of the chain)propertyPath - the full path to the requested propertyindex - the current index inside the property chain
MalformedPropertyPathExceptionpublic final java.lang.Class<?> getNextNodeClass()
public Node getChild()
public void setChild(Node child)
public java.lang.String getPropertyName()
public void setPropertyWrapper(PropertyWrapper wrapper)
wrapper - the propertyWrapper of this field.public boolean isLeaf()
protected java.lang.String getIndex(java.lang.String nodeName)
protected int getIndexAsInt(java.lang.String nodeName)
public void applyValidation(java.lang.Object container,
ValidationRequest request)
protected abstract void applyValidationImpl(java.lang.Object container,
ValidationRequest request)
container - the container where to apply this validation. It cannot be null.request - the validation to be performedpublic PropertyWrapper getPropertyWrapper()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||