Package org.thymeleaf.model
Interface IXMLDeclaration
- All Superinterfaces:
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
Modifier and TypeMethodDescriptionReturns the value of theencoding
attribute specified at the XML Declaration (if specified).Returns the keyword of the XML Declaration in its original case (usuallyxml
).Returns the value of thestandalone
attribute specified at the XML Declaration (if specified).Returns the XML version specified at the XML Declaration (if specified).Returns the complete XML Declaration as a String.Methods inherited from interface org.thymeleaf.model.ITemplateEvent
accept, getCol, getLine, getTemplateName, hasLocation, write
-
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.
-