org.onebusaway.csv_entities.schema
Interface BeanWrapper
public interface BeanWrapper
getPropertyType
Class<?> getPropertyType(String propertyName)
getPropertyValue
Object getPropertyValue(String propertyName)
- Get the current value of the specified property.
- Parameters:
propertyName - the name of the property to get the value of (may be a
nested path and/or an indexed/mapped property)
- Returns:
- the value of the property
- Throws:
InvalidPropertyException - if there is no such property or if the
property isn't readable
PropertyAccessException - if the property was valid but the accessor
method failed
setPropertyValue
void setPropertyValue(String propertyName,
Object value)
- Set the specified value as current property value.
- Parameters:
propertyName - the name of the property to set the value of (may be a
nested path and/or an indexed/mapped property)value - the new value
- Throws:
InvalidPropertyException - if there is no such property or if the
property isn't writable
PropertyAccessException - if the property was valid but the accessor
method failed or a type mismatch occured
getWrappedInstance
<T> T getWrappedInstance(Class<T> type)
Copyright © 2012 OneBusAway. All Rights Reserved.