Class DocType
- All Implemented Interfaces:
IEngineTemplateEvent,IDocType,ITemplateEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final StringFields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept a visitor, implementation ofIModelVisitor.(package private) static DocTypeasEngineDocType(IDocType docType) voidbeHandled(ITemplateHandler handler) private Stringprivate static StringcomputeType(String publicId, String systemId) Returns 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,PUBLICorSYSTEM.toString()voidWrites this event to the specifiedWriter.Methods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Field Details
-
DEFAULT_KEYWORD
- See Also:
-
DEFAULT_ELEMENT_NAME
- See Also:
-
DEFAULT_TYPE_PUBLIC
- See Also:
-
DEFAULT_TYPE_SYSTEM
- See Also:
-
keyword
-
elementName
-
type
-
publicId
-
systemId
-
internalSubset
-
docType
-
-
Constructor Details
-
DocType
DocType() -
DocType
-
DocType
-
DocType
-
-
Method Details
-
getKeyword
Description copied from interface:IDocTypeReturns the keyword of the DOCTYPE clause in its original case (usually
DOCTYPE).- Specified by:
getKeywordin interfaceIDocType- Returns:
- the DOCTYPE keyword.
-
getElementName
Description copied from interface:IDocTypeReturns the root element name in the DOCTYPE clause. Will normally be
htmlin HTML or XHTML documents.- Specified by:
getElementNamein interfaceIDocType- Returns:
- the element name
-
getType
Description copied from interface:IDocTypeReturns the type of DOCTYPE, usually
null,PUBLICorSYSTEM. -
getPublicId
Description copied from interface:IDocTypeReturns the PUBLIC ID, if it has been specified.
- Specified by:
getPublicIdin interfaceIDocType- Returns:
- the PUBLIC ID (might be null).
-
getSystemId
Description copied from interface:IDocTypeReturns the SYSTEM ID, if it has been specified.
- Specified by:
getSystemIdin interfaceIDocType- Returns:
- the SYSTEM ID (might be null).
-
getInternalSubset
Description copied from interface:IDocTypeReturns the internal subset in the DOCTYPE, if it has been specified.
- Specified by:
getInternalSubsetin interfaceIDocType- Returns:
- the internal subset (might be null).
-
getDocType
Description copied from interface:IDocTypeReturns the complete DOCTYPE clause as a String.
- Specified by:
getDocTypein interfaceIDocType- Returns:
- the complete DOCTYPE clause.
-
computeDocType
-
computeType
-
accept
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
Description copied from interface:ITemplateEventWrites this event to the specified
Writer.Template output performed at
OutputTemplateHandleris done by calling these methods at each of the events resulting from template processing.- Specified by:
writein interfaceITemplateEvent- Parameters:
writer- the writer this event should be written to.- Throws:
IOException- if an input/output exception occurs.
-
asEngineDocType
-
beHandled
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
toString
-