Package org.thymeleaf.model
Interface IDocType
- All Superinterfaces:
ITemplateEvent
Event interface defining a DOCTYPE clause.
Note that any implementations of this interface should be immutable.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionReturns the complete DOCTYPE clause as a String.Returns the root element name in the DOCTYPE clause.Returns the internal subset in the DOCTYPE, if it has been specified.Returns the keyword of the DOCTYPE clause in its original case (usuallyDOCTYPE
).Returns the PUBLIC ID, if it has been specified.Returns the SYSTEM ID, if it has been specified.getType()
Returns the type of DOCTYPE, usuallynull
,PUBLIC
orSYSTEM
.Methods inherited from interface org.thymeleaf.model.ITemplateEvent
accept, getCol, getLine, getTemplateName, hasLocation, write
-
Method Details
-
getKeyword
String getKeyword()Returns the keyword of the DOCTYPE clause in its original case (usually
DOCTYPE
).- Returns:
- the DOCTYPE keyword.
-
getElementName
String getElementName()Returns the root element name in the DOCTYPE clause. Will normally be
html
in HTML or XHTML documents.- Returns:
- the element name
-
getType
String getType()Returns the type of DOCTYPE, usually
null
,PUBLIC
orSYSTEM
.- Returns:
- the type of DOCTYPE (might be null).
-
getPublicId
String getPublicId()Returns the PUBLIC ID, if it has been specified.
- Returns:
- the PUBLIC ID (might be null).
-
getSystemId
String getSystemId()Returns the SYSTEM ID, if it has been specified.
- Returns:
- the SYSTEM ID (might be null).
-
getInternalSubset
String getInternalSubset()Returns the internal subset in the DOCTYPE, if it has been specified.
- Returns:
- the internal subset (might be null).
-
getDocType
String getDocType()Returns the complete DOCTYPE clause as a String.
- Returns:
- the complete DOCTYPE clause.
-