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 StringgetDocType()Returns the complete DOCTYPE clause as a String.StringgetElementName()Returns the root element name in the DOCTYPE clause.StringgetInternalSubset()Returns the internal subset in the DOCTYPE, if it has been specified.StringgetKeyword()Returns the keyword of the DOCTYPE clause in its original case (usuallyDOCTYPE).StringgetPublicId()Returns the PUBLIC ID, if it has been specified.StringgetSystemId()Returns the SYSTEM ID, if it has been specified.StringgetType()Returns the type of DOCTYPE, usuallynull,PUBLICorSYSTEM.-
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
htmlin HTML or XHTML documents.- Returns:
- the element name
-
getType
String getType()
Returns the type of DOCTYPE, usually
null,PUBLICorSYSTEM.- 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.
-
-