|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.loom.binding.PropertyBinder
public class PropertyBinder
A binder for a nested property, e.g. address.street.name.
| Constructor Summary | |
|---|---|
PropertyBinder(java.lang.String propertyPath)
|
|
| Method Summary | |
|---|---|
void |
applyValidation(java.lang.Object action,
PropertyValidator validator,
Messages messages)
Applies a validation. |
Converter |
getConverter()
|
Node |
getLeafNode()
|
java.lang.String |
getNormalizedPropertyPath()
|
java.lang.Class<?> |
getPropertyClass()
|
Node |
getRootNode()
|
java.lang.Object |
getValue(java.lang.Object rootContainer,
java.lang.String propertyPath)
Gets the value on the given path |
java.lang.String |
getValueAsText(java.lang.Object rootContainer,
java.lang.String propertyPath,
MessagesRepository repository)
|
void |
setConverter(Converter converter)
|
void |
setRootNode(Node rootNode)
|
void |
setValue(java.lang.Object rootContainer,
java.lang.Object valueAsObject,
java.lang.String propertyPath)
|
void |
setValue(java.lang.Object rootContainer,
ParameterValue valueAsString,
Messages messages,
MessagesRepository repository)
Assigns a value to the given path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyBinder(java.lang.String propertyPath)
| Method Detail |
|---|
public void setValue(java.lang.Object rootContainer,
ParameterValue valueAsString,
Messages messages,
MessagesRepository repository)
rootContainer - the object where to assign the valuevalueAsString - the value to assign
public void setValue(java.lang.Object rootContainer,
java.lang.Object valueAsObject,
java.lang.String propertyPath)
public java.lang.Object getValue(java.lang.Object rootContainer,
java.lang.String propertyPath)
rootContainer - the root of the property pathpropertyPath - the property path requested
public java.lang.String getValueAsText(java.lang.Object rootContainer,
java.lang.String propertyPath,
MessagesRepository repository)
public Node getRootNode()
public void setRootNode(Node rootNode)
public java.lang.String getNormalizedPropertyPath()
public void applyValidation(java.lang.Object action,
PropertyValidator validator,
Messages messages)
action - the action whose properties will be validated.validator - The validator to be appliedmessages - where to put any validation messages that may occurpublic java.lang.Class<?> getPropertyClass()
public Node getLeafNode()
public Converter getConverter()
public void setConverter(Converter converter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||