org.onebusaway.gtfs.csv.schema
Interface BeanWrapper
public interface BeanWrapper
|
Method Summary |
java.lang.Class<?> |
getPropertyType(java.lang.String propertyName)
|
java.lang.Object |
getPropertyValue(java.lang.String propertyName)
Get the current value of the specified property. |
|
getWrappedInstance(java.lang.Class<T> type)
|
void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Set the specified value as current property value. |
getPropertyType
java.lang.Class<?> getPropertyType(java.lang.String propertyName)
getPropertyValue
java.lang.Object getPropertyValue(java.lang.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(java.lang.String propertyName,
java.lang.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(java.lang.Class<T> type)
Copyright © 2011 OneBusAway. All Rights Reserved.