public final class DocType extends Object implements Serializable
Models a DOCTYPE declaration in an XML-based template document.
Objects of this class contain both the original PUBLICID and SYSTEMID, and also a processed version of both, which can be the result of applying DOCTYPE translations.
Constructor and Description |
---|
DocType(String rootElementName,
String publicId,
String systemId) |
DocType(String rootElementName,
String publicId,
String systemId,
String originalDocTypeClause) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getOriginalDocTypeClause() |
DocTypeIdentifier |
getProcessedPublicId() |
DocTypeIdentifier |
getProcessedSystemId() |
String |
getPublicId() |
String |
getRootElementName() |
String |
getSystemId() |
int |
hashCode() |
boolean |
isProcessed()
Returns whether this DOCTYPE has already been processed -and therefore
translations have been applied- or not.
|
void |
process(Configuration configuration)
Process this DOCTYPE, including any applicable translations.
|
void |
write(Writer writer) |
public String getOriginalDocTypeClause()
public String getRootElementName()
public String getPublicId()
public String getSystemId()
public DocTypeIdentifier getProcessedPublicId()
public DocTypeIdentifier getProcessedSystemId()
public boolean isProcessed()
Returns whether this DOCTYPE has already been processed -and therefore translations have been applied- or not.
public void process(Configuration configuration)
Process this DOCTYPE, including any applicable translations.
configuration
- the configuration to be applied.public void write(Writer writer) throws IOException
IOException
Copyright © 2016 The THYMELEAF team. All rights reserved.