Class ProfileImplementation.StereotypeWrapper

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(Element element)
      Applies stereotype of this wrapper to given element.
      protected Stereotype getElement​(com.nomagic.profiles.ProfileCache cache, java.lang.String name)  
      abstract Stereotype getStereotype()
      Returns stereotype for this wrapper.
      protected static Property getTagByName​(Stereotype stereotype, java.lang.String tagName)  
      abstract boolean is​(Element element)
      Checks if stereotype of this wrapper is applied to given element.
      protected static java.lang.Boolean toBoolean​(java.lang.Object o)  
      protected static java.lang.Double toDouble​(java.lang.Object o)  
      protected static java.lang.Integer toInteger​(java.lang.Object o)  
      protected static java.lang.String toString​(java.lang.Object o)  
      void unApply​(Element element)
      Removes applied stereotype of this wrapper from given element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • apply

        @OpenApi
        public void apply​(Element element)
        Applies stereotype of this wrapper to given element.
        Parameters:
        element - element
      • unApply

        @OpenApi
        public void unApply​(Element element)
        Removes applied stereotype of this wrapper from given element.
        Parameters:
        element - element
      • is

        public abstract boolean is​(@CheckForNull
                                   Element element)
        Checks if stereotype of this wrapper is applied to given element.
        Parameters:
        element - element
        Returns:
        true if stereotype of this wrapper is applied to given element
      • getStereotype

        @OpenApi
        public abstract Stereotype getStereotype()
        Returns stereotype for this wrapper.
        Returns:
        stereotype
      • getElement

        @CheckForNull
        protected Stereotype getElement​(com.nomagic.profiles.ProfileCache cache,
                                        java.lang.String name)
      • getTagByName

        @CheckForNull
        protected static Property getTagByName​(@CheckForNull
                                               Stereotype stereotype,
                                               java.lang.String tagName)
      • toInteger

        @CheckForNull
        protected static java.lang.Integer toInteger​(@CheckForNull
                                                     java.lang.Object o)
      • toBoolean

        @CheckForNull
        protected static java.lang.Boolean toBoolean​(@CheckForNull
                                                     java.lang.Object o)
      • toString

        @CheckForNull
        protected static java.lang.String toString​(@CheckForNull
                                                   java.lang.Object o)
      • toDouble

        @CheckForNull
        protected static java.lang.Double toDouble​(@CheckForNull
                                                   java.lang.Object o)