public class CommonsConfigurationAccessor extends Object implements ClassAccessor
Modifier and Type | Field and Description |
---|---|
protected List<CommonsConfigurationEntryAccessor> |
accessors |
static String |
copyright |
Constructor and Description |
---|
CommonsConfigurationAccessor(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
PropertyAccessor[] |
getKeyProperties() |
String |
getName() |
PropertyAccessor[] |
getProperties() |
PropertyAccessor |
getProperty(String propertyName) |
Class<?> |
getType()
The type of the objects this accessor can operate on.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
Object |
newInstance() |
public static final String copyright
protected final List<CommonsConfigurationEntryAccessor> accessors
public CommonsConfigurationAccessor(Configuration configuration)
public String getName()
getName
in interface ClassAccessor
public PropertyAccessor getProperty(String propertyName) throws NoSuchFieldException
getProperty
in interface ClassAccessor
NoSuchFieldException
public PropertyAccessor[] getProperties()
getProperties
in interface ClassAccessor
public PropertyAccessor[] getKeyProperties()
getKeyProperties
in interface ClassAccessor
public Object newInstance()
newInstance
in interface ClassAccessor
public Class<?> getType()
ClassAccessor
getType
in interface ClassAccessor
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement