Interface IProcessableElementTag

  • All Superinterfaces:
    IElementTag, ITemplateEvent
    All Known Subinterfaces:
    IOpenElementTag, IStandaloneElementTag

    public interface IProcessableElementTag
    extends IElementTag

    Event interface defining a processable element tag, i.e an element tag on which processors can be applied (open, standalone).

    Note that any implementations of this interface should be immutable.

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Method Detail

      • getAllAttributes

        IAttribute[] getAllAttributes()

        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.

        Returns:
        the array of attributes.
      • getAttributeMap

        Map<String,​String> getAttributeMap()

        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.

        Returns:
        the map of attributes.
      • hasAttribute

        boolean hasAttribute​(String completeName)

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

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

        boolean hasAttribute​(String prefix,
                             String name)

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

        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

        boolean hasAttribute​(AttributeName attributeName)

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

        Parameters:
        attributeName - the name of the attribute that is being queried.
        Returns:
        true if the attribute exists, false if not.
      • getAttribute

        IAttribute getAttribute​(String completeName)

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

        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

        IAttribute getAttribute​(String prefix,
                                String name)

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

        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

        IAttribute getAttribute​(AttributeName attributeName)

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

        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

        String getAttributeValue​(String completeName)

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

        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

        String getAttributeValue​(String prefix,
                                 String name)

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

        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

        String getAttributeValue​(AttributeName attributeName)

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

        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.