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 String
getEncoding()
Returns the value of theencoding
attribute specified at the XML Declaration (if specified).String
getKeyword()
Returns the keyword of the XML Declaration in its original case (usuallyxml
).String
getStandalone()
Returns the value of thestandalone
attribute specified at the XML Declaration (if specified).String
getVersion()
Returns the XML version specified at the XML Declaration (if specified).String
getXmlDeclaration()
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
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.
-
-