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 | |
Node |
|
NamedNodeMap |
|
NamedNodeMap |
|
String |
|
String |
|
String |
|
protected int |
|
short |
|
NamedNodeMap |
|
String |
|
String |
|
String | |
Object |
|
protected Hashtable | |
boolean |
|
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 , 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 Node cloneNode(boolean deep)
Clones the node.
- Overrides:
- cloneNode in interface ParentNode
public NamedNodeMap getElements()
NON-DOM: Access the collection of ElementDefinitions.
- See Also:
ElementDefinitionImpl
public 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.
public String getInternalSubset()
Introduced in DOM Level 2. Return the internalSubset given as a string.
- 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.
public String getNodeName()
Returns the document type name
- 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.
- Overrides:
- getNodeType in interface NodeImpl
public 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.
public String getPublicId()
Introduced in DOM Level 2. Return the public identifier of this Document type.
- Since:
- WD-DOM-Level-2-19990923
public String getSystemId()
Introduced in DOM Level 2. Return the system identifier of this Document type.
- Since:
- WD-DOM-Level-2-19990923
public String getTextContent() throws DOMException
- Overrides:
- getTextContent in interface ParentNode
protected Hashtable getUserDataRecord()
- Overrides:
- getUserDataRecord in interface NodeImpl
public boolean isEqualNode(Node arg)
DOM Level 3 WD- Experimental. Override inherited behavior from ParentNodeImpl to support deep equal.
- Overrides:
- isEqualNode in interface ParentNode
public void setInternalSubset(String internalSubset)
NON-DOM. Set the internalSubset given as a string.
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 DOMException
- Overrides:
- setTextContent in interface ParentNode
public Object setUserData(String key, Object data, UserDataHandler handler)
- Overrides:
- setUserData in interface NodeImpl