public class BasicPropertyAccessor extends Object implements PropertyAccessor
Modifier and Type | Class and Description |
---|---|
static class |
BasicPropertyAccessor.BasicGetter |
static class |
BasicPropertyAccessor.BasicSetter |
Constructor and Description |
---|
BasicPropertyAccessor() |
Modifier and Type | Method and Description |
---|---|
static Getter |
createGetter(Class theClass,
String propertyName) |
Getter |
getGetter(Class theClass,
String propertyName)
Create a "getter" for the named attribute
|
Setter |
getSetter(Class theClass,
String propertyName)
Create a "setter" for the named attribute
|
public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException
PropertyAccessor
getSetter
in interface PropertyAccessor
theClass
- The class on which the property is defined.propertyName
- The name of the property.PropertyNotFoundException
- Indicates a problem interpretting the propertyNamepublic Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException
PropertyAccessor
getGetter
in interface PropertyAccessor
theClass
- The class on which the property is defined.propertyName
- The name of the property.PropertyNotFoundException
- Indicates a problem interpretting the propertyNamepublic static Getter createGetter(Class theClass, String propertyName) throws PropertyNotFoundException
PropertyNotFoundException
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.