Package org.nuiton.eugene.java.extension
Class AnnotationsManagerExtension
- java.lang.Object
-
- org.nuiton.eugene.java.extension.AnnotationsManagerExtension
-
public class AnnotationsManagerExtension extends Object
Created: 17 déc. 2009- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,AnnotationsManager>managersMap of AnotationsManager with key equals to the classifier qualified name associated to the AnotationsManagerstatic StringOBJECTMODEL_EXTENSIONExtension static used to identify AnnotationsManagerExtension in ObjectModel.
-
Constructor Summary
Constructors Constructor Description AnnotationsManagerExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ObjectModelAnnotation>getAnnotations(ObjectModelClassifier classifier, ObjectModelElement element)Get the registred annotations for the givenelementin the givenclassifier.AnnotationsManagergetManager(ObjectModelClassifier classifier)Get the AnotationsManager associated to the classifier.protected Map<String,AnnotationsManager>getManagers()
-
-
-
Field Detail
-
OBJECTMODEL_EXTENSION
public static final String OBJECTMODEL_EXTENSION
Extension static used to identify AnnotationsManagerExtension in ObjectModel.- See Also:
- Constant Field Values
-
managers
protected Map<String,AnnotationsManager> managers
Map of AnotationsManager with key equals to the classifier qualified name associated to the AnotationsManager
-
-
Method Detail
-
getAnnotations
public List<ObjectModelAnnotation> getAnnotations(ObjectModelClassifier classifier, ObjectModelElement element)
Get the registred annotations for the givenelementin the givenclassifier. Note: The method always returns anone nullvalue, but an empty array when no annotation when no annotation found for the element.- Parameters:
classifier- the classifier where is the elementelement- the element on which searching annotations- Returns:
- the list of annotations registred or an empty list if none.
-
getManager
public AnnotationsManager getManager(ObjectModelClassifier classifier)
Get the AnotationsManager associated to the classifier. If not exist, it will be created.- Parameters:
classifier- reference for the AnotationsManager- Returns:
- the annotationsManager associated to the classifier (never null)
-
getManagers
protected Map<String,AnnotationsManager> getManagers()
-
-