org.thymeleaf.dom
Class DocType

Object
  extended by org.thymeleaf.dom.DocType
All Implemented Interfaces:
Serializable

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.

Since:
2.0.0
Author:
Daniel Fernández
See Also:
Serialized Form

Constructor Summary
DocType(String rootElementName, String publicId, String systemId)
           
DocType(String rootElementName, String publicId, String systemId, String originalDocTypeClause)
           
 
Method Summary
 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.
static DocType translateDOMDocumentType(DocumentType domDocumentType)
          Deprecated. Redundant. StandardDOMTranslator.translateDocumentType(org.w3c.dom.DocumentType) should be used instead. Will be removed in 2.1.0
 void write(Writer writer)
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocType

public DocType(String rootElementName,
               String publicId,
               String systemId)

DocType

public DocType(String rootElementName,
               String publicId,
               String systemId,
               String originalDocTypeClause)
Method Detail

getOriginalDocTypeClause

public String getOriginalDocTypeClause()

getRootElementName

public String getRootElementName()

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

getProcessedPublicId

public DocTypeIdentifier getProcessedPublicId()

getProcessedSystemId

public DocTypeIdentifier getProcessedSystemId()

isProcessed

public boolean isProcessed()

Returns whether this DOCTYPE has already been processed -and therefore translations have been applied- or not.

Returns:
true if the DOCTYPE has already been processed, false if not.

process

public void process(Configuration configuration)

Process this DOCTYPE, including any applicable translations.

Parameters:
configuration - the configuration to be applied.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

write

public void write(Writer writer)
           throws IOException
Throws:
IOException

translateDOMDocumentType

@Deprecated
public static final DocType translateDOMDocumentType(DocumentType domDocumentType)
Deprecated. Redundant. StandardDOMTranslator.translateDocumentType(org.w3c.dom.DocumentType) should be used instead. Will be removed in 2.1.0



Copyright © 2013 The THYMELEAF team. All Rights Reserved.