|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.core.metadata.PropertyMetaDataParser
public final class PropertyMetaDataParser
Parses runtime annotations to create property metadata.
Method Summary | |
---|---|
static PropertyMetaDataParser |
create(PropertiesContext context) Convenience constructor to generate property descriptors with access to property comments. |
static PropertyMetaDataParser |
createWithoutContextAccess() Convenience constructor to generate property descriptors without comments. |
PropertyDescriptor |
readDescriptor(Method method) Reads the property descriptor information from the method. |
List<PropertyDescriptor> |
readDescriptors(Class<?> propertySetType) Reads the property descriptor information from the type. |
PropertyKey |
readKey(Method method) Reads the property key information from the method. |
String |
readPropertySetName(Class<?> type) Reads the property set name of the type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PropertyMetaDataParser createWithoutContextAccess()
public static PropertyMetaDataParser create(PropertiesContext context) throws NullPointerException
context
- the context to access comment information for properties.
NullPointerException
- if
context
is
null
.
public List<PropertyDescriptor> readDescriptors(Class<?> propertySetType) throws NullPointerException, IllegalArgumentException
propertySetType
- the type to read the property descriptor.
NullPointerException
- if
propertySetType
is
null
.
IllegalArgumentException
- if
propertySetType
is not annotated with
PropertySet
.
public PropertyDescriptor readDescriptor(Method method) throws NullPointerException
method
- the method to read the property descriptor.
NullPointerException
- if
method
is
null
.
public PropertyKey readKey(Method method)
method
- the method to read the property key.
public String readPropertySetName(Class<?> type)
type
- the type to read the property set name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |