Interface IXMLDeclaration

  • All Superinterfaces:
    ITemplateEvent

    public interface IXMLDeclaration
    extends ITemplateEvent

    Event interface defining an XML declaration.

    Note that any implementations of this interface should be immutable.

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

      • getKeyword

         getKeyword()

        Returns the keyword of the XML Declaration in its original case (usually xml).

        Returns:
        the XML Declaration keyword.
      • getVersion

         getVersion()

        Returns the XML version specified at the XML Declaration (if specified).

        Returns:
        the XML version (might be null).
      • getEncoding

         getEncoding()

        Returns the value of the encoding attribute specified at the XML Declaration (if specified).

        Returns:
        the encoding value (might be null).
      • getStandalone

         getStandalone()

        Returns the value of the standalone attribute specified at the XML Declaration (if specified).

        Returns:
        the standalone value (might be null).
      • getXmlDeclaration

         getXmlDeclaration()

        Returns the complete XML Declaration as a String.

        Returns:
        the complete XML Declaration.