|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.dom.NodeImpl com.novell.xml.dom.DocumentTypeImpl
Novell implementation of DOM level 2 DocumentType
interface
Field Summary |
Fields inherited from class com.novell.xml.dom.NodeImpl |
allowedChildren, baseURI, changeCount, document, documentOrderVal, expandedName, firstChild, lastChild, localName, namespaceURI, nextOrderVal, nextSibling, nodeName, nodeValue, parentNode, prefix, previousSibling, toStringSerializes, xmlnsPrefix, xmlPrefix, xpathBehavior |
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 | |
protected |
DocumentTypeImpl(DocumentImpl owner,
String name,
String publicId,
String systemId,
String internalSubset)
|
Method Summary | |
Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
NamedNodeMap |
getEntities()
A NamedNodeMap containing the general entities, both
external and internal, declared in the DTD. |
String |
getInternalSubset()
The internal subset as a string.The actual content returned depends on how much information is available to the implementation. |
String |
getName()
The name of DTD; i.e., the name immediately following the DOCTYPE keyword. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
NamedNodeMap |
getNotations()
A NamedNodeMap containing the notations declared in the
DTD. |
String |
getPublicId()
The public identifier of the external subset. |
String |
getSystemId()
The system identifier of the external subset. |
void |
setInternalSubset(String internalSubset)
Set the internal subset non-DOM |
void |
setName(String name)
Set the name of the DTD non-DOM |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
protected DocumentTypeImpl(DocumentImpl owner, String name, String publicId, String systemId, String internalSubset)
Method Detail |
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class NodeImpl
public Node cloneNode(boolean deep)
parentNode
returns null
.).
Element
copies all attributes and their
values, including those generated by the XML processor to represent
defaulted attributes, but this method does not copy any text it contains
unless it is a deep clone, since the text is contained in a child
Text
node. Cloning any other type of node simply returns a
copy of this node.
cloneNode
in interface Node
cloneNode
in class NodeImpl
deep
- If true
, recursively clone the subtree under the
specified node; if false
, clone only the node itself (and
its attributes, if it is an Element
).
public String getName()
DOCTYPE
keyword.
getName
in interface DocumentType
public NamedNodeMap getEntities()
NamedNodeMap
containing the general entities, both
external and internal, declared in the DTD. Duplicates are discarded.
For example in:<!DOCTYPE ex SYSTEM "ex.dtd" [ <!ENTITY foo
"foo"> <!ENTITY bar "bar"> <!ENTITY % baz "baz">]>
<ex/> the interface provides access to foo
and
bar
but not baz
. Every node in this map also
implements the Entity
interface.
entities
cannot be altered in any way.
getEntities
in interface DocumentType
public NamedNodeMap getNotations()
NamedNodeMap
containing the notations declared in the
DTD. Duplicates are discarded. Every node in this map also implements
the Notation
interface.
notations
cannot be altered in any way.
getNotations
in interface DocumentType
public void setName(String name)
name
- The name to setpublic String getPublicId()
getPublicId
in interface DocumentType
public String getSystemId()
getSystemId
in interface DocumentType
public String getInternalSubset()
getInternalSubset
in interface DocumentType
public void setInternalSubset(String internalSubset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |