Class MAnnotation


  • public class MAnnotation
    extends MIdElement
    An annotation serves for storing extra information about the model. It saves this information in annotation details.
    • Field Detail

      • type

        protected java.lang.String type
        The type.
      • source

        protected java.lang.String source
        The source.
      • details

        protected java.util.List details
        The details.
    • Constructor Detail

      • MAnnotation

        public MAnnotation()
    • Method Detail

      • getType

        public java.lang.String getType()
        Get the type.
        Returns:
        The type.
      • setType

        public void setType​(java.lang.String type)
        Set the type.
        Parameters:
        type - The type to set.
      • getSource

        public java.lang.String getSource()
        Get the source.
        Returns:
        The source.
      • setSource

        public void setSource​(java.lang.String source)
        Set the source.
        Parameters:
        source - The source to set.
      • addDetail

        public void addDetail​(MAnnotationDetail detail)
        Add a detail.
        Parameters:
        detail - The detail.
      • removeDetail

        public void removeDetail​(MAnnotationDetail detail)
        Remove a detail.
        Parameters:
        detail - The detail.
      • getDetails

        public java.util.List getDetails()
        Get the details.
        Returns:
        The details.