public class PropertiesAccessor extends Object implements ClassAccessor
Modifier and Type | Field and Description |
---|---|
protected PropertiesEntryAccessor[] |
accessors |
static String |
copyright |
Constructor and Description |
---|
PropertiesAccessor(Properties properties) |
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 PropertiesEntryAccessor[] accessors
public PropertiesAccessor(Properties properties)
public String getName()
getName
in interface ClassAccessor
public Class<?> getType()
ClassAccessor
getType
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 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