Package org.thymeleaf.model
Interface IDocType
-
- All Superinterfaces:
ITemplateEvent
- All Known Implementing Classes:
DocType
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDocType()Returns the complete DOCTYPE clause as a String.java.lang.StringgetElementName()Returns the root element name in the DOCTYPE clause.java.lang.StringgetInternalSubset()Returns the internal subset in the DOCTYPE, if it has been specified.java.lang.StringgetKeyword()Returns the keyword of the DOCTYPE clause in its original case (usuallyDOCTYPE).java.lang.StringgetPublicId()Returns the PUBLIC ID, if it has been specified.java.lang.StringgetSystemId()Returns the SYSTEM ID, if it has been specified.java.lang.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
java.lang.String getKeyword()
Returns the keyword of the DOCTYPE clause in its original case (usually
DOCTYPE).- Returns:
- the DOCTYPE keyword.
-
getElementName
java.lang.String getElementName()
Returns the root element name in the DOCTYPE clause. Will normally be
htmlin HTML or XHTML documents.- Returns:
- the element name
-
getType
java.lang.String getType()
Returns the type of DOCTYPE, usually
null,PUBLICorSYSTEM.- Returns:
- the type of DOCTYPE (might be null).
-
getPublicId
java.lang.String getPublicId()
Returns the PUBLIC ID, if it has been specified.
- Returns:
- the PUBLIC ID (might be null).
-
getSystemId
java.lang.String getSystemId()
Returns the SYSTEM ID, if it has been specified.
- Returns:
- the SYSTEM ID (might be null).
-
getInternalSubset
java.lang.String getInternalSubset()
Returns the internal subset in the DOCTYPE, if it has been specified.
- Returns:
- the internal subset (might be null).
-
getDocType
java.lang.String getDocType()
Returns the complete DOCTYPE clause as a String.
- Returns:
- the complete DOCTYPE clause.
-
-