Package io.milton.property
Class BeanPropertySource
java.lang.Object
io.milton.property.BeanPropertySource
- All Implemented Interfaces:
PropertySource
A read/write source of properties which uses getter/setter style properties
on the resource class.
This is similar in concept to form variable binding in web frameworks like
struts and MVC.
- Author:
- brad
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.milton.property.PropertySource
PropertySource.PropertyAccessibility, PropertySource.PropertyMetaData, PropertySource.PropertySetException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearProperty(QName name, Resource r) getProperty(QName name, Resource r) getPropertyDescriptor(Object r, String name) getPropertyMetaData(QName name, Resource r) voidsetProperty(QName name, Object value, Resource r)
-
Constructor Details
-
BeanPropertySource
public BeanPropertySource()
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin interfacePropertySource- Throws:
NotAuthorizedException
-
setProperty
public void setProperty(QName name, Object value, Resource r) throws NotAuthorizedException, PropertySource.PropertySetException - Specified by:
setPropertyin interfacePropertySource- Throws:
NotAuthorizedExceptionPropertySource.PropertySetException
-
getPropertyMetaData
- Specified by:
getPropertyMetaDatain interfacePropertySource
-
clearProperty
- Specified by:
clearPropertyin interfacePropertySource- Throws:
NotAuthorizedException
-
getAllPropertyNames
- Specified by:
getAllPropertyNamesin interfacePropertySource
-
getAnnotation
-
getPropertyDescriptor
-