Class AbstractProcessableElementTag

    • Constructor Detail

      • AbstractProcessableElementTag

        AbstractProcessableElementTag​(TemplateMode templateMode,
                                      ElementDefinition elementDefinition,
                                      java.lang.String elementCompleteName,
                                      Attributes attributes,
                                      boolean synthetic)
      • AbstractProcessableElementTag

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

      • hasAttribute

        public final boolean hasAttribute​(java.lang.String completeName)
        Description copied from interface: IProcessableElementTag

        Returns whether an attribute is exists at the tag or not.

        Specified by:
        hasAttribute in interface IProcessableElementTag
        Parameters:
        completeName - the complete name of the attribute that is being queried.
        Returns:
        true if the attribute exists, false if not.
      • hasAttribute

        public final boolean hasAttribute​(java.lang.String prefix,
                                          java.lang.String name)
        Description copied from interface: IProcessableElementTag

        Returns whether an attribute is exists at the tag or not.

        Specified by:
        hasAttribute in interface IProcessableElementTag
        Parameters:
        prefix - the prefix of the attribute that is being queried (might be null).
        name - the name of tha attribute that is being queried.
        Returns:
        true if the attribute exists, false if not.
      • hasAttribute

        public final boolean hasAttribute​(AttributeName attributeName)
        Description copied from interface: IProcessableElementTag

        Returns whether an attribute is exists at the tag or not.

        Specified by:
        hasAttribute in interface IProcessableElementTag
        Parameters:
        attributeName - the name of the attribute that is being queried.
        Returns:
        true if the attribute exists, false if not.
      • getAttribute

        public final IAttribute getAttribute​(java.lang.String completeName)
        Description copied from interface: IProcessableElementTag

        Returns the object modelling a specific attribute in the tag (or null if it does not exist).

        Specified by:
        getAttribute in interface IProcessableElementTag
        Parameters:
        completeName - the complete name of the attribute that is being queried.
        Returns:
        the IAttribute for the queried attribute, or null if it does not exist.
      • getAttribute

        public final IAttribute getAttribute​(java.lang.String prefix,
                                             java.lang.String name)
        Description copied from interface: IProcessableElementTag

        Returns the object modelling a specific attribute in the tag (or null if it does not exist).

        Specified by:
        getAttribute in interface IProcessableElementTag
        Parameters:
        prefix - the prefix of the attribute that is being queried (might be null).
        name - the name of tha attribute that is being queried.
        Returns:
        the IAttribute for the queried attribute, or null if it does not exist.
      • getAttribute

        public final IAttribute getAttribute​(AttributeName attributeName)
        Description copied from interface: IProcessableElementTag

        Returns the object modelling a specific attribute in the tag (or null if it does not exist).

        Specified by:
        getAttribute in interface IProcessableElementTag
        Parameters:
        attributeName - the name of the attribute that is being queried.
        Returns:
        the IAttribute for the queried attribute, or null if it does not exist.
      • getAttributeValue

        public final java.lang.String getAttributeValue​(java.lang.String completeName)
        Description copied from interface: IProcessableElementTag

        Returns the value of a specific attribute in the tag (or null if it does not exist).

        Specified by:
        getAttributeValue in interface IProcessableElementTag
        Parameters:
        completeName - the complete name of the attribute that is being queried.
        Returns:
        the value of the queried attribute, or null if it does not exist.
      • getAttributeValue

        public final java.lang.String getAttributeValue​(java.lang.String prefix,
                                                        java.lang.String name)
        Description copied from interface: IProcessableElementTag

        Returns the value of a specific attribute in the tag (or null if it does not exist).

        Specified by:
        getAttributeValue in interface IProcessableElementTag
        Parameters:
        prefix - the prefix of the attribute that is being queried (might be null).
        name - the name of tha attribute that is being queried.
        Returns:
        the value of the queried attribute, or null if it does not exist.
      • getAttributeValue

        public final java.lang.String getAttributeValue​(AttributeName attributeName)
        Description copied from interface: IProcessableElementTag

        Returns the value of a specific attribute in the tag (or null if it does not exist).

        Specified by:
        getAttributeValue in interface IProcessableElementTag
        Parameters:
        attributeName - the name of the attribute that is being queried.
        Returns:
        the value of the queried attribute, or null if it does not exist.
      • getAllAttributes

        public IAttribute[] getAllAttributes()
        Description copied from interface: IProcessableElementTag

        Returns an array with all the attributes contained in the tag.

        This array is a defensive copy of the original data kept at the tag, and might be null if there are no attributes at the tag.

        Specified by:
        getAllAttributes in interface IProcessableElementTag
        Returns:
        the array of attributes.
      • getAttributeMap

        public java.util.Map<java.lang.String,​java.lang.String> getAttributeMap()
        Description copied from interface: IProcessableElementTag

        Returns a Map containing all the attribute names+values in the tag.

        This array is a defensive copy of the original data kept at the tag, and might be null if there are no attributes at the tag.

        Specified by:
        getAttributeMap in interface IProcessableElementTag
        Returns:
        the map of attributes.
      • hasAssociatedProcessors

        boolean hasAssociatedProcessors()