Package org.thymeleaf.model
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetEncoding()Returns the value of theencodingattribute specified at the XML Declaration (if specified).StringgetKeyword()Returns the keyword of the XML Declaration in its original case (usuallyxml).StringgetStandalone()Returns the value of thestandaloneattribute specified at the XML Declaration (if specified).StringgetVersion()Returns the XML version specified at the XML Declaration (if specified).StringgetXmlDeclaration()Returns the complete XML Declaration as a String.-
Methods inherited from interface org.thymeleaf.model.ITemplateEvent
accept, getCol, getLine, getTemplateName, hasLocation, write
-
-
-
-
Method Detail
-
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
encodingattribute specified at the XML Declaration (if specified).- Returns:
- the encoding value (might be null).
-
getStandalone
String getStandalone()
Returns the value of the
standaloneattribute 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.
-
-