java.lang.Object
|
+--gnu.xml.dom.DomNode
|
+--gnu.xml.dom.DomExtern
|
+--gnu.xml.dom.DomDoctype
All Implemented Interfaces:DomEntity
DomEntityReference
DomNotation
DomDoctype(DOMImplementation impl, java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset) Constructs a DocumentType node associated with the specified implementation, with the specified name. |
declareEntity(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notation) Records the declaration of a general entity in this DocumentType. | |
declareNotation(java.lang.String name, java.lang.String publicId, java.lang.String systemId) Records the declaration of a notation in this DocumentType. | |
DOM L1 Returns information about any general entities declared in the DTD. | |
Returns the implementation associated with this document type. | |
java.lang.String | DOM L2 Returns the internal subset of the document, as a string of unparsed XML declarations (and comments, PIs, whitespace); or returns null if there is no such subset. |
java.lang.String | getName() DOM L1 Returns the root element's name (just like getNodeName). |
short | DOM L1 Returns the constant DOCUMENT_TYPE_NODE. |
DOM L1 Returns information about any notations declared in the DTD. | |
void | Sets the internal "readonly" flag so the node and its associated data (only lists of entities and notations, no type information at the moment) can't be changed. |
boolean | supports(java.lang.String feature, java.lang.String version) DOM L2 Consults the DOM implementation to determine if the requested feature is supported. |
protected DomDoctype(DOMImplementation impl, java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset)
public Entity declareEntity(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notation)
DOMException - NO_MODIFICATION_ALLOWED_ERR if the
DocumentType is no longer writable.DOMException - HIERARCHY_REQUEST_ERR if the DocumentType
is not associated with a document.public Notation declareNotation(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
DOMException - NO_MODIFICATION_ALLOWED_ERR if the
DocumentType is no longer writable.DOMException - HIERARCHY_REQUEST_ERR if the DocumentType
is not associated with a document.public NamedNodeMap getEntities()
DOMException - HIERARCHY_REQUEST_ERR if the DocumentType
is not associated with a document.public final DOMImplementation getImplementation()
public String getInternalSubset()
public final String getName()
public final short getNodeType()
public NamedNodeMap getNotations()
DOMException - HIERARCHY_REQUEST_ERR if the DocumentType
is not associated with a document.public void makeReadonly()
public final boolean supports(java.lang.String feature, java.lang.String version)