Class AbstractElementTag

    • Field Detail

      • elementCompleteName

        final java.lang.String elementCompleteName
      • synthetic

        final boolean synthetic
    • Constructor Detail

      • AbstractElementTag

        protected AbstractElementTag​(TemplateMode templateMode,
                                     ElementDefinition elementDefinition,
                                     java.lang.String elementCompleteName,
                                     boolean synthetic)
      • AbstractElementTag

        protected AbstractElementTag​(TemplateMode templateMode,
                                     ElementDefinition elementDefinition,
                                     java.lang.String elementCompleteName,
                                     boolean synthetic,
                                     java.lang.String templateName,
                                     int line,
                                     int col)
    • Method Detail

      • getTemplateMode

        public final TemplateMode getTemplateMode()
        Description copied from interface: IElementTag

        Returns the template mode to which this element tag is linked.

        Element tags are created for a specific template mode and cannot be added to IModel objects that do not match this template mode.

        Specified by:
        getTemplateMode in interface IElementTag
        Returns:
        the template mode.
      • getElementCompleteName

        public final java.lang.String getElementCompleteName()
        Description copied from interface: IElementTag

        Returns the complete name of the element (including prefix) as a String.

        If this event models a tag that was actually parsed from a template, this value will represent the exact way in which the element name was written in the template.

        Specified by:
        getElementCompleteName in interface IElementTag
        Returns:
        the element complete name.
      • getElementDefinition

        public final ElementDefinition getElementDefinition()
        Description copied from interface: IElementTag

        Returns the ElementDefinition corresponding to this tag.

        The element definition contains several metadata related to the element. For example, if the template mode is TemplateMode.HTML, an element definition could specify whether the element is void or not (i.e. should be expected to have a body).

        Specified by:
        getElementDefinition in interface IElementTag
        Returns:
        the element definition.
      • isSynthetic

        public final boolean isSynthetic()
        Description copied from interface: IElementTag

        Returns whether the tag is synthetic (i.e. not originally present in a template, but rather a tag balancing artifact).

        Specified by:
        isSynthetic in interface IElementTag
        Returns:
        whether the tag is synthetic or not.
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object