org.thymeleaf.dom
Class DocType

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

public final class DocType
extends Object
implements java.io.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)
           
 
Method Summary
 boolean equals(Object obj)
           
 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(org.w3c.dom.DocumentType domDocumentType)
           
 
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)
Method Detail

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

translateDOMDocumentType

public static final DocType translateDOMDocumentType(org.w3c.dom.DocumentType domDocumentType)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.