|
||||||||||
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.projectdoc.ProjectdocAnnotationCollector
public final class ProjectdocAnnotationCollector
Collects annotation information on QDox structures.
Nested Class Summary | |
---|---|
static interface |
ProjectdocAnnotationCollector.Defaults Provider for default values. |
Constructor Summary | |
---|---|
ProjectdocAnnotationCollector(Class<?> type, ProjectdocAnnotationCollector.Defaults parentDefaults, ProjectdocAnnotationCollector.Defaults defaults) Default constructor. |
Method Summary | |
---|---|
protected static boolean |
addMetadata(ProjectdocMetaData metadata, Annotation annotation) Add metadata read from the annotation. |
ProjectdocMetaData |
createMetaDataFromAnnotations(Method element) Adds annotations of the given element. |
ProjectdocMetaData |
getParentMetadata() Returns the meta data collected from the parent element. |
protected static String |
normalizeString(Object object) Helper to normalize an annotation value. |
protected void |
setDefaults(Member element, ProjectdocMetaData metadata) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectdocAnnotationCollector(Class<?> type, ProjectdocAnnotationCollector.Defaults parentDefaults, ProjectdocAnnotationCollector.Defaults defaults)
type
- the parent type.
parentDefaults
- the defaults for metadata to use. May be
null
if no defaults are provided.
defaults
- the provider for default values.
Method Detail |
---|
public ProjectdocMetaData getParentMetadata()
public ProjectdocMetaData createMetaDataFromAnnotations(Method element)
element
- the element whose annotations are to be fetched.
element
.
protected void setDefaults(Member element, ProjectdocMetaData metadata)
protected static boolean addMetadata(ProjectdocMetaData metadata, Annotation annotation)
metadata
- the instance to add to.
annotation
- the annotation to access information to add to the metadata instance.
true
if the metadata has been added,
false
if the annotation was not recognized.
protected static final String normalizeString(Object object)
object
- the information to normalize.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |