com.beasys.commerce.util.dom
Class DocumentTypeImpl
java.lang.Object
|
+--com.beasys.commerce.util.dom.DOMBase
|
+--com.beasys.commerce.util.dom.NodeImpl
|
+--com.beasys.commerce.util.dom.DocumentTypeImpl
- All Implemented Interfaces:
- org.w3c.dom.DocumentType, org.w3c.dom.Node, java.io.Serializable
- public class DocumentTypeImpl
- extends NodeImpl
- implements org.w3c.dom.DocumentType
An implementation of the W3C's DOM DocumentType object.
I'm assuming that the parent node of a DocumentType is always the owning
document. These are created in an implementation specific fashion, since
they are only created when a Document is created.
- Version:
- 1.0
- Author:
- BEA Systems, Inc.
- See Also:
- Serialized Form
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
|
Constructor Summary |
DocumentTypeImpl(org.w3c.dom.Document doc,
java.lang.String name)
Constructor. |
|
Method Summary |
org.w3c.dom.Node |
cloneNode()
Clone this node. |
org.w3c.dom.NamedNodeMap |
getEntities()
Get the entities. |
java.lang.String |
getName()
Get the dtd name. |
java.lang.String |
getNodeName()
Get the node name. |
short |
getNodeType()
Return Node.DOCUMENT_TYPE_NODE. |
org.w3c.dom.NamedNodeMap |
getNotations()
Get the notations. |
void |
setName(java.lang.String name)
Set the dtd name. |
| Methods inherited from class com.beasys.commerce.util.dom.NodeImpl |
allowsChildren, appendChild, appendChildren, checkAllowChild, cloneNode, getAllowableChildrenTypes, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeType, getNodeValue, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, insertChildrenBefore, isAncestor, removeChild, replaceChild, setNodeValue, setParentNode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue |
DocumentTypeImpl
public DocumentTypeImpl(org.w3c.dom.Document doc,
java.lang.String name)
- Constructor.
- Parameters:
doc - the owning document.name - the dtd name.
cloneNode
public org.w3c.dom.Node cloneNode()
- Clone this node.
- Overrides:
cloneNode in class NodeImpl
getNodeType
public short getNodeType()
- Return Node.DOCUMENT_TYPE_NODE.
- Specified by:
getNodeType in interface org.w3c.dom.Node- Overrides:
getNodeType in class NodeImpl
getNodeName
public java.lang.String getNodeName()
- Get the node name.
For DocumentTypes, the node name is the dtd name.
- Specified by:
getNodeName in interface org.w3c.dom.Node- Overrides:
getNodeName in class NodeImpl
- See Also:
getName()
getName
public java.lang.String getName()
- Get the dtd name.
- Specified by:
getName in interface org.w3c.dom.DocumentType
setName
public void setName(java.lang.String name)
- Set the dtd name.
getEntities
public org.w3c.dom.NamedNodeMap getEntities()
- Get the entities.
- Specified by:
getEntities in interface org.w3c.dom.DocumentType
getNotations
public org.w3c.dom.NamedNodeMap getNotations()
- Get the notations.
- Specified by:
getNotations in interface org.w3c.dom.DocumentType
Copyright © 2000 BEA Systems, Inc. All Rights Reserved