Class ProfileImplementation.StereotypeWrapper

    • 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
      • isSameOrDerivedStereotype

        @OpenApi
        public boolean isSameOrDerivedStereotype​(Stereotype stereotype)
        Returns:
        true if given stereotype is same or derived from this stereotype
        See Also:
        getStereotype()
      • 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)