|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.loom.binding.PropertyBinderMap
public class PropertyBinderMap
A map that handles a group of PropertyBinder together This class is thread safe
Field Summary | |
---|---|
protected java.util.Set<java.lang.String> |
unboundParameters
the list of parameters that are not properties and should not be bound if found. |
Constructor Summary | |
---|---|
PropertyBinderMap()
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,PropertyBinder> |
getBinders()
|
java.lang.Class<?> |
getContainerClass()
|
PropertyBinder |
getPropertyBinder(java.lang.String normalizedPropertyPath)
Asks for the PropertyBinding instance corresponding to a given propertyPath. |
java.lang.Class<?> |
getPropertyClass(java.lang.String normalizedPropertyPath)
|
PropertyBinder |
getRequiredPropertyBinder(java.lang.String normalizedPropertyPath)
Same as getPropertyBinder, but the property is required to exist and will throw an exception if it does not. |
java.util.Set<java.lang.String> |
getUnboundParameters()
|
java.lang.Object |
getValue(java.lang.Object container,
java.lang.String propertyPath)
|
java.lang.String |
getValueAsText(java.lang.Object container,
java.lang.String propertyPath,
MessagesRepository repository)
|
void |
populate(Action action,
ServletRequestParameters parameters,
MessagesRepository messagesRepository,
Messages messages)
Applies the given values to the object passed as argument. |
void |
setContainerClass(java.lang.Class<?> containerClass)
|
void |
setPropertyBinderFactory(PropertyBinderFactory propertyBinderFactory)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Set<java.lang.String> unboundParameters
Constructor Detail |
---|
public PropertyBinderMap()
Method Detail |
---|
public PropertyBinder getRequiredPropertyBinder(java.lang.String normalizedPropertyPath)
public PropertyBinder getPropertyBinder(java.lang.String normalizedPropertyPath)
public java.lang.Class<?> getPropertyClass(java.lang.String normalizedPropertyPath)
PropertyNotFoundException
- if the property could not be foundpublic void populate(Action action, ServletRequestParameters parameters, MessagesRepository messagesRepository, Messages messages)
public int size()
public java.lang.Object getValue(java.lang.Object container, java.lang.String propertyPath)
public java.lang.String getValueAsText(java.lang.Object container, java.lang.String propertyPath, MessagesRepository repository)
public void setPropertyBinderFactory(PropertyBinderFactory propertyBinderFactory)
public void setContainerClass(java.lang.Class<?> containerClass)
public java.util.Map<java.lang.String,PropertyBinder> getBinders()
public java.util.Set<java.lang.String> getUnboundParameters()
public java.lang.Class<?> getContainerClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |