## Uses of Class
org.jdom.DocType

Packages that use DocType
org.jdom
org.jdom.adapters
org.jdom.input
org.jdom.output

Uses of DocType in org.jdom

Fields in org.jdom declared as DocType
`protected DocType` `Document.docType` The ``DocType`` declaration.

Methods in org.jdom that return DocType
`DocType` `Document.getDocType()` This will return the ``DocType`` declaration for this `Document`, or `null` if none exists.
`DocType` `DocType.setElementName(java.lang.String elementName)` This will set the root element name declared by this DOCTYPE declaration.
`DocType` `DocType.setPublicID(java.lang.String publicID)` This will set the public ID of an externally referenced DTD.
`DocType` `DocType.setSystemID(java.lang.String systemID)` This will set the system ID of an externally referenced DTD.
`protected DocType` `DocType.setDocument(Document document)` This sets the ``Document`` holding this doctype.

Methods in org.jdom with parameters of type DocType
`Document` `Document.setDocType(DocType docType)` This will set the ``DocType`` declaration for this `Document`.

Constructors in org.jdom with parameters of type DocType
`Document.Document(Element rootElement, DocType docType)` This will create a new `Document`, with the supplied ``Element`` as the root element and the supplied ``DocType`` declaration.
`Document.Document(java.util.List newContent, DocType docType)` This will create a new `Document`, with the supplied list of content, and the supplied ``DocType`` declaration.
`IllegalAddException.IllegalAddException(Document base, DocType added, java.lang.String reason)` This will create an `Exception` indicating that the addition of the ``DocType`` to the ``Document`` is illegal.

Uses of DocType in org.jdom.adapters

Methods in org.jdom.adapters with parameters of type DocType
`org.w3c.dom.Document` `AbstractDOMAdapter.createDocument(DocType doctype)` This creates an empty `Document` object based on a specific parser implementation with the given DOCTYPE.
`org.w3c.dom.Document` `DOMAdapter.createDocument(DocType doctype)` This creates an empty `Document` object based on a specific parser implementation with the given DOCTYPE.

Uses of DocType in org.jdom.input

Methods in org.jdom.input that return DocType
`DocType` `JDOMFactory.docType(java.lang.String elementName, java.lang.String publicID, java.lang.String systemID)` This will create the `DocType` with the specified element name and a reference to an external DTD.
`DocType` `JDOMFactory.docType(java.lang.String elementName, java.lang.String systemID)` This will create the `DocType` with the specified element name and reference to an external DTD.
`DocType` `JDOMFactory.docType(java.lang.String elementName)` This will create the `DocType` with the specified element name
`DocType` `DefaultJDOMFactory.docType(java.lang.String elementName, java.lang.String publicID, java.lang.String systemID)`
`DocType` `DefaultJDOMFactory.docType(java.lang.String elementName, java.lang.String systemID)`
`DocType` `DefaultJDOMFactory.docType(java.lang.String elementName)`

Methods in org.jdom.input with parameters of type DocType
`Document` `JDOMFactory.document(Element rootElement, DocType docType)` This will create a new `Document`, with the supplied ``Element`` as the root element and the supplied ``DocType`` declaration.
`Document` `DefaultJDOMFactory.document(Element rootElement, DocType docType)`

Uses of DocType in org.jdom.output

Methods in org.jdom.output with parameters of type DocType
`void` `XMLOutputter.output(DocType doctype, java.io.OutputStream out)` Print out the ``DocType``.
`void` `XMLOutputter.output(DocType doctype, java.io.Writer out)` Print out the ``DocType``.
`java.lang.String` `XMLOutputter.outputString(DocType doctype)` Return a string representing a DocType.
`protected void` `XMLOutputter.printDocType(DocType docType, java.io.Writer out)` This handle printing the DOCTYPE declaration if one exists.

Copyright © 2002 Jason Hunter, Brett McLaughlin. All Rights Reserved.