Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.DocumentTypeImpl
Field Summary | |
protected NamedNodeMapImpl |
|
protected NamedNodeMapImpl |
|
protected String | |
protected String |
|
protected NamedNodeMapImpl |
|
protected String | |
protected String |
Fields inherited from class org.apache.xerces.dom.ParentNode | |
fNodeListCache , firstChild , ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode | |
nextSibling , previousSibling |
Constructor Summary | |
| |
|
Method Summary | |
org.w3c.dom.Node |
|
org.w3c.dom.NamedNodeMap |
|
org.w3c.dom.NamedNodeMap |
|
String |
|
String |
|
String |
|
protected int |
|
short |
|
org.w3c.dom.NamedNodeMap |
|
String |
|
String |
|
String | |
Object |
|
protected Hashtable | |
boolean |
|
void |
|
protected void |
|
void |
|
void |
|
Object |
|
Methods inherited from class org.apache.xerces.dom.ParentNode | |
cloneNode , getChildNodes , getChildNodesUnoptimized , getFirstChild , getLastChild , getLength , getOwnerDocument , getTextContent , hasChildNodes , insertBefore , isEqualNode , item , normalize , removeChild , replaceChild , setOwnerDocument , setReadOnly , setTextContent , synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode | |
cloneNode , getNextSibling , getParentNode , getPreviousSibling |
protected String internalSubset
protected String name
Document type name.
protected String publicID
protected String systemID
public DocumentTypeImpl(CoreDocumentImpl ownerDocument, String name)
Factory method for creating a document type node.
public DocumentTypeImpl(CoreDocumentImpl ownerDocument, String qualifiedName, String publicID, String systemID)
Factory method for creating a document type node.
public org.w3c.dom.Node cloneNode(boolean deep)
Clones the node.
- Specified by:
- cloneNode in interface org.w3c.dom.Node
- Overrides:
- cloneNode in interface ParentNode
public org.w3c.dom.NamedNodeMap getElements()
NON-DOM: Access the collection of ElementDefinitions.
- See Also:
ElementDefinitionImpl
public org.w3c.dom.NamedNodeMap getEntities()
Access the collection of general Entities, both external and internal, defined in the DTD. For example, in:<!doctype example SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar "bar"> <!ENTITY % baz "baz"> ]>The Entities map includes foo and bar, but not baz. It is promised that only Nodes which are Entities will exist in this NamedNodeMap. For HTML, this will always be null. Note that "built in" entities such as & and < should be converted to their actual characters before being placed in the DOM's contained text, and should be converted back when the DOM is rendered as XML or HTML, and hence DO NOT appear here.
- Specified by:
- getEntities in interface org.w3c.dom.DocumentType
public String getInternalSubset()
Introduced in DOM Level 2. Return the internalSubset given as a string.
- Specified by:
- getInternalSubset in interface org.w3c.dom.DocumentType
- Since:
- WD-DOM-Level-2-19990923
public String getName()
Name of this document type. If we loaded from a DTD, this should be the name immediately following the DOCTYPE keyword.
- Specified by:
- getName in interface org.w3c.dom.DocumentType
public String getNodeName()
Returns the document type name
- Specified by:
- getNodeName in interface org.w3c.dom.Node
- Overrides:
- getNodeName in interface NodeImpl
protected int getNodeNumber()
NON-DOM Get the number associated with this doctype.
- Overrides:
- getNodeNumber in interface NodeImpl
public short getNodeType()
A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface.
- Specified by:
- getNodeType in interface org.w3c.dom.Node
- Overrides:
- getNodeType in interface NodeImpl
public org.w3c.dom.NamedNodeMap getNotations()
Access the collection of Notations defined in the DTD. A notation declares, by name, the format of an XML unparsed entity or is used to formally declare a Processing Instruction target.
- Specified by:
- getNotations in interface org.w3c.dom.DocumentType
public String getPublicId()
Introduced in DOM Level 2. Return the public identifier of this Document type.
- Specified by:
- getPublicId in interface org.w3c.dom.DocumentType
- Since:
- WD-DOM-Level-2-19990923
public String getSystemId()
Introduced in DOM Level 2. Return the system identifier of this Document type.
- Specified by:
- getSystemId in interface org.w3c.dom.DocumentType
- Since:
- WD-DOM-Level-2-19990923
public String getTextContent() throws org.w3c.dom.DOMException
- Specified by:
- getTextContent in interface org.w3c.dom.Node
- Overrides:
- getTextContent in interface ParentNode
public Object getUserData(String key)
- Specified by:
- getUserData in interface org.w3c.dom.Node
- Overrides:
- getUserData in interface NodeImpl
protected Hashtable getUserDataRecord()
- Overrides:
- getUserDataRecord in interface NodeImpl
public boolean isEqualNode(org.w3c.dom.Node arg)
DOM Level 3 WD- Experimental. Override inherited behavior from ParentNodeImpl to support deep equal.
- Specified by:
- isEqualNode in interface org.w3c.dom.Node
- Overrides:
- isEqualNode in interface ParentNode
public void setInternalSubset(String internalSubset)
NON-DOM. Set the internalSubset given as a string.
protected void setOwnerDocument(CoreDocumentImpl doc)
NON-DOM set the ownerDocument of this node and its children
- Overrides:
- setOwnerDocument in interface ParentNode
public void setReadOnly(boolean readOnly, boolean deep)
NON-DOM: Subclassed to flip the entities' and notations' readonly switch as well.
- Overrides:
- setReadOnly in interface ParentNode
public void setTextContent(String textContent) throws org.w3c.dom.DOMException
- Specified by:
- setTextContent in interface org.w3c.dom.Node
- Overrides:
- setTextContent in interface ParentNode
public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
- Specified by:
- setUserData in interface org.w3c.dom.Node
- Overrides:
- setUserData in interface NodeImpl