| org.sakaiproject.metaobj.utils.mvc.impl.BeanWrapperBase
All known Subclasses: org.sakaiproject.metaobj.utils.mvc.impl.MapWrapper, org.sakaiproject.metaobj.utils.mvc.impl.MixedBeanWrapper,
BeanWrapperBase | abstract public class BeanWrapperBase extends BeanWrapperImpl (Code) | | Created by IntelliJ IDEA.
User: John Ellis
Date: Apr 23, 2004
Time: 1:50:42 PM
To change this template use File | Settings | File Templates.
|
logger | final protected Log logger(Code) | | |
BeanWrapperBase | public BeanWrapperBase()(Code) | | |
BeanWrapperBase | public BeanWrapperBase(Object object) throws BeansException(Code) | | Create new BeanWrapperImpl for the given object.
Parameters: object - object wrapped by this BeanWrapper. throws: org.springframework.beans.BeansException - if the object cannot be wrapped by a BeanWrapper |
BeanWrapperBase | public BeanWrapperBase(Object object, String nestedPath, Object rootObject) throws BeansException(Code) | | Create new BeanWrapperImpl for the given object,
registering a nested path that the object is in.
Parameters: object - object wrapped by this BeanWrapper. Parameters: nestedPath - the nested path of the object Parameters: rootObject - the root object at the top of the path throws: org.springframework.beans.BeansException - if the object cannot be wrapped by a BeanWrapper |
createNestedWrapper | protected BeanWrapperImpl createNestedWrapper(String parentPath, String nestedProperty)(Code) | | |
getBeanWrapperForPropertyPath | protected BeanWrapperImpl getBeanWrapperForPropertyPath(String propertyPath)(Code) | | Recursively navigate to return a BeanWrapper for the nested property path.
Parameters: propertyPath - property property path, which may be nested a BeanWrapper for the target bean |
getFinalPath | protected String getFinalPath(String nestedPath)(Code) | | Get the last component of the path. Also works if not nested.
Parameters: nestedPath - property path we know is nested last component of the path (the property on the target bean) |
getNestedBeanWrapper | protected BeanWrapperImpl getNestedBeanWrapper(String nestedProperty)(Code) | | Retrieve a BeanWrapper for the given nested property.
Create a new one if not found in the cache.
Note: Caching nested BeanWrappers is necessary now,
to keep registered custom editors for nested properties.
Parameters: nestedProperty - property to create the BeanWrapper for the BeanWrapper instance, either cached or newly created |
getPropertyValue | public Object getPropertyValue(String propertyName) throws BeansException(Code) | | |
isNestedProperty | protected boolean isNestedProperty(String path)(Code) | | Is the property nested? That is, does it contain the nested
property separator (usually ".").
Parameters: path - property path boolean is the property nested |
setPropertyValue | public void setPropertyValue(String propertyName, Object value) throws BeansException(Code) | | |
|
|