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 Details

    • getKeyword

      String getKeyword()

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

      Returns:
      the XML Declaration keyword.
    • getVersion

      String getVersion()

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

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

      String getEncoding()

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

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

      String getStandalone()

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

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

      String getXmlDeclaration()

      Returns the complete XML Declaration as a String.

      Returns:
      the complete XML Declaration.