| java.lang.Object uk.org.ponder.mapping.DARApplier
DARApplier | public class DARApplier implements BeanModelAlterer(Code) | | The core "EL engine". Will apply a "DataAlterationRequest" to an arbitrary
bean target.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
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) | public Object | getBeanValue(String fullpath, Object rbl, BeanPredicateModel addressibleModel) | public Object | getFlattenedValue(String fullpath, Object root, Class targetclass, BeanResolver resolver) | public SAXalizerMappingContext | getMappingContext() | public Object | invokeBeanMethod(ShellInfo shells, BeanPredicateModel addressibleModel) | public Object | invokeBeanMethod(String methodEL, Object rootobj) | public void | setBeanValue(String fullpath, Object root, Object value, TargettedMessageList messages, boolean applyconversions) | public void | setMappingContext(SAXalizerMappingContext mappingcontext) | public void | setReflectiveCache(ReflectiveCache reflectivecache) | public void | setSAXalXMLProvider(SAXalXMLProvider saxal) | public void | setSpringMode(boolean springmode) Will enable more aggressive type conversions as appropriate for operating a
Spring-style container specified in XML. | public void | setVectorCapableParser(VectorCapableParser vcp) |
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: messages - The list to which error messages accreted duringapplication are to be appended. This is probably the same asthat in the ThreadErrorState, but is supplied as an argument toreduce costs of ThreadLocal gets. |
setSpringMode | public void setSpringMode(boolean springmode)(Code) | | Will enable more aggressive type conversions as appropriate for operating a
Spring-style container specified in XML. In particular will convert String
values into lists of Strings by splitting at commas, if they are applied to
vector-valued beans.
|
|
|