Class AnnotationsManagerExtension


  • public class AnnotationsManagerExtension
    extends Object
    Created: 17 déc. 2009
    Author:
    Tony Chemit - chemit@codelutin.com
    • 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
    • Constructor Detail

      • AnnotationsManagerExtension

        public AnnotationsManagerExtension()
    • Method Detail

      • getAnnotations

        public List<ObjectModelAnnotation> getAnnotations​(ObjectModelClassifier classifier,
                                                          ObjectModelElement element)
        Get the registred annotations for the given element in the given classifier. Note: The method always returns a none null value, but an empty array when no annotation when no annotation found for the element.
        Parameters:
        classifier - the classifier where is the element
        element - 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)