|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.metastopheles.MetaDataObject
public abstract class MetaDataObject
A MetaDataObject contains data about a particular aspect of a bean class.
Constructor Summary | |
---|---|
MetaDataObject()
|
Method Summary | ||
---|---|---|
|
getAnnotation(Class<A> annotationType)
Returns the annotation associated with this MetaDataObject's default annotation source. |
|
protected abstract AnnotatedElement |
getDefaultAnnotationSource()
Returns the default source for annotation data for this MetaDataObject. |
|
|
getFacet(FacetKey<T> key)
Retrieves a facet value associated with this MetaDataObject. |
|
Set<FacetKey<?>> |
getFacetKeys()
Returns a snapshot of the keys of the facets currently associated with this MetaDataObject. |
|
|
setFacet(FacetKey<T> key,
T value)
Associates a facet with this MetaDataObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaDataObject()
Method Detail |
---|
protected abstract AnnotatedElement getDefaultAnnotationSource()
public <T> T getFacet(FacetKey<T> key)
key
- the facet key
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
annotationType
- the annotation type
getDefaultAnnotationSource()
public Set<FacetKey<?>> getFacetKeys()
public <T> void setFacet(FacetKey<T> key, T value)
key
- the facet keyvalue
- the facet value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |