|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyDescriptorRegistry
A registry for a set of property descriptors.
The typical usage of this class is to fetch a PropertyDescriptor
by its (string) key.
Method Summary | |
---|---|
void |
addDescriptors(Class<?>... propertySetTypes) Adds the given descriptors. |
void |
addDescriptors(Class<?> propertySetType) Adds the given descriptor. |
void |
addDescriptors(Class<?> propertySetType, List<PropertyDescriptor> descriptors) Adds the descriptors to the given declaring type. |
void |
addDescriptors(Set<Class<?>> propertySetTypes) Adds the given descriptors. |
List<PropertyDescriptor> |
createMandatoryProperties() Returns the list of mandatory properties. |
List<? extends PropertyDescriptor> |
get(Class<?> propertySet) Returns the descriptors for the given descriptor type. |
PropertyDescriptor |
get(String key) Returns the descriptor for the given key or null if no descriptor is registered for the given key. |
PropertiesContext |
getContext(Class<?> declaringType) Returns the property context for the given property declaring type. |
PropertiesContext |
getContext(PropertyDescriptor descriptor) Returns the property context for the given property descriptor. |
String |
getDocumentationUrl(PropertyDescriptor descriptor) Returns the URL to the documentation report for the given property descriptor. |
String |
getMetaInfPath(PropertyDescriptor descriptor) Returns the path to the context information for the given property descriptor. |
Set<Class<?>> |
getPropertySetTypes() Returns the property set types of all property descriptors that have been added. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void addDescriptors(Class<?> propertySetType, List<PropertyDescriptor> descriptors) throws NullPointerException, DuplicatePropertyDeclarationsException
propertySetType
- the type that declares the property
descriptors
.
descriptors
- the descriptors to the given
propertySetType
.
NullPointerException
- if
propertySetType
or
descriptors
is
null
.
DuplicatePropertyDeclarationsException
- if any of the descriptors declare the same property.
List<PropertyDescriptor> createMandatoryProperties()
Returns a copy that can be edited.
void addDescriptors(Class<?> propertySetType) throws DuplicatePropertyDeclarationsException
propertySetType
- the property set type to add.
DuplicatePropertyDeclarationsException
- if any of the descriptors declare the same property.
void addDescriptors(Class<?>... propertySetTypes) throws DuplicatePropertyDeclarationsException
propertySetTypes
- the array of property set types to add.
DuplicatePropertyDeclarationsException
- if any of the descriptors declare the same property.
void addDescriptors(Set<Class<?>> propertySetTypes) throws DuplicatePropertyDeclarationsException
propertySetTypes
- the array of property set types to add.
DuplicatePropertyDeclarationsException
- if any of the descriptors declare the same property.
List<? extends PropertyDescriptor> get(Class<?> propertySet)
propertySet
- the type for descriptors to fetch.
null
.
PropertyDescriptor get(String key)
null
if no descriptor is registered for the given key.
key
- the key whose descriptor is requested.
null
.
PropertiesContext getContext(PropertyDescriptor descriptor) throws ConfigException
descriptor
- the descriptor whose context is requested.
ConfigException
- if the context for the descriptor cannot be found.
PropertiesContext getContext(Class<?> declaringType) throws ConfigException
declaringType
- the type whose context is requested.
ConfigException
- if the context for the descriptor cannot be found.
String getDocumentationUrl(PropertyDescriptor descriptor) throws ConfigException
descriptor
- the descriptor whose documentation is requested.
ConfigException
- if the descriptors context cannot be found.
String getMetaInfPath(PropertyDescriptor descriptor) throws ConfigException
descriptor
- the descriptor whose context information is requested.
ConfigException
- if the descriptors context cannot be found.
Set<Class<?>> getPropertySetTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |