Package org.thymeleaf.model
Interface IDocType
-
- All Superinterfaces:
ITemplateEvent
public interface IDocType extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDocType()
Returns the complete DOCTYPE clause as a String.String
getElementName()
Returns the root element name in the DOCTYPE clause.String
getInternalSubset()
Returns the internal subset in the DOCTYPE, if it has been specified.String
getKeyword()
Returns the keyword of the DOCTYPE clause in its original case (usuallyDOCTYPE
).String
getPublicId()
Returns the PUBLIC ID, if it has been specified.String
getSystemId()
Returns the SYSTEM ID, if it has been specified.String
getType()
Returns the type of DOCTYPE, usuallynull
,PUBLIC
orSYSTEM
.-
Methods inherited from interface org.thymeleaf.model.ITemplateEvent
accept, getCol, getLine, getTemplateName, hasLocation, write
-
-
-
-
Method Detail
-
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.
-
-