| uk.org.ponder.beanutil.BeanModelAlterer
All known Subclasses: uk.org.ponder.mapping.DARApplier,
BeanModelAlterer | public interface BeanModelAlterer (Code) | | The base interface for RSF's expression language (EL)
|
Method Summary | |
public void | applyAlteration(Object rootobj, DataAlterationRequest dar, DAREnvironment darenv) | public void | applyAlterations(Object rootobj, DARList toapply, DAREnvironment darenv) Apply the alterations mentioned in the enclosed DARList to the supplied
bean. | public ShellInfo | fetchShells(String fullpath, Object rootobj, boolean expectMethod) Fetch the "shells" for the specified path through the bean model, which
is an array of Object, one for each path segment in the supplied path. | public Object | getBeanValue(String fullpath, Object root, BeanPredicateModel addressibleModel) Fetch a bean value by path from the supplied object root.
Parameters: fullpath - The path of the bean to fetch Parameters: root - The root object which the path is relative to Parameters: addressibleModel - A model expressing permissible paths. | public Object | getFlattenedValue(String fullpath, Object root, Class targetclazz, BeanResolver resolver) Converts the object currently present at the supplied bean path into the
specified target class, which must be one of the classes handled by the
UIType framework.
Parameters: fullpath - The full EL path from the root object from which theflattened value is to be fetched. Parameters: root - The root object Parameters: targetclazz - A class of one of the UIType types, or elsenull . | public Object | invokeBeanMethod(ShellInfo shells, BeanPredicateModel addressibleModel) Invoke a bean method from a path in the model. | public Object | invokeBeanMethod(String methodEL, Object rootobj) Invoke a bean method from a path in the model. | public void | setBeanValue(String fullpath, Object root, Object value, TargettedMessageList messages, boolean applyconversion) |
applyAlterations | public void applyAlterations(Object rootobj, DARList toapply, DAREnvironment darenv)(Code) | | Apply the alterations mentioned in the enclosed DARList to the supplied
bean. Note that this method assumes that the TargettedMessageList is
already navigated to the root path referred to by the bean, and that the
DARList mentions paths relative to that bean.
Parameters: rootobj - The object to which alterations are to be applied Parameters: toapply - The list of alterations Parameters: darenv - A DAREnvironment record supplying any environmentrequire for the application. May be null |
fetchShells | public ShellInfo fetchShells(String fullpath, Object rootobj, boolean expectMethod)(Code) | | Fetch the "shells" for the specified path through the bean model, which
is an array of Object, one for each path segment in the supplied path. The
array will quietly terminate at the first bean which is either null or
a DARApplier. If expectMethod is true, it will also stop at
any segment which is an exact match for a method name, or a MethodInvokingProxy.
|
getBeanValue | public Object getBeanValue(String fullpath, Object root, BeanPredicateModel addressibleModel)(Code) | | Fetch a bean value by path from the supplied object root.
Parameters: fullpath - The path of the bean to fetch Parameters: root - The root object which the path is relative to Parameters: addressibleModel - A model expressing permissible paths. May be null if the path requires no checking. |
getFlattenedValue | public Object getFlattenedValue(String fullpath, Object root, Class targetclazz, BeanResolver resolver)(Code) | | Converts the object currently present at the supplied bean path into the
specified target class, which must be one of the classes handled by the
UIType framework.
Parameters: fullpath - The full EL path from the root object from which theflattened value is to be fetched. Parameters: root - The root object Parameters: targetclazz - A class of one of the UIType types, or elsenull . If null , the type of thereturned object will be either String[] or String, depending onwhether the path holds an enumerable (vectorial) value or not. Parameters: resolver - A resolver which will be applied to each scalar value toconvert it to String if necessary. If null ,default leaf conversion will be applied. |
invokeBeanMethod | public Object invokeBeanMethod(ShellInfo shells, BeanPredicateModel addressibleModel)(Code) | | Invoke a bean method from a path in the model.
Parameters: shells - An encoding of the method to be invoked, assumed to be fetched fromBeanModelAlterer.fetchShells(String,Object) - the section of the pathreferring to bean paths has terminated at the last bean present in theShellInfo.shells array. The next path segment is assumed to bethe method name, and the final section is filled with arguments. Parameters: addressibleModel - A model for the beans which are permissible to beaddressed for this invocation. May be null if no securitychecks are required. |
invokeBeanMethod | public Object invokeBeanMethod(String methodEL, Object rootobj)(Code) | | Invoke a bean method from a path in the model.
|
|
|