|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.xml.utils.UnImplNode
|
+--org.apache.xalan.stree.Child
|
+--org.apache.xalan.stree.DocumentTypeImpl
**For internal use only** Class to hold information about a DocumentType node
| Method Summary | |
NamedNodeMap |
getEntities()
A NamedNodeMap containing the general entities, both
external and internal, declared in the DTD. |
java.lang.String |
getInternalSubset()
The internal subset as a string. |
int |
getLength()
The number of nodes in this map. |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
java.lang.String |
getName()
The name of DTD; i.e., the name immediately following the DOCTYPE keyword. |
Node |
getNamedItem(java.lang.String name)
Retrieves a node specified by name. |
Node |
getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves a node specified by local name and namespace URI. |
java.lang.String |
getNodeName()
Returns the node name. |
short |
getNodeType()
A short integer indicating what type of node this is. |
NamedNodeMap |
getNotations()
A NamedNodeMap containing the notations declared in the
DTD. |
java.lang.String |
getPublicId()
The public identifier of the external subset. |
java.lang.String |
getSystemId()
The system identifier of the external subset. |
Node |
item(int index)
Returns the indexth item in the map. |
Node |
removeNamedItem(java.lang.String name)
Removes a node specified by name. |
Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Removes a node specified by local name and namespace URI. |
Node |
setNamedItem(Node arg)
Adds a node using its nodeName attribute. |
Node |
setNamedItemNS(Node arg)
Adds a node using its namespaceURI and
localName. |
| Methods inherited from class org.apache.xalan.stree.Child |
dispatchCharactersEvent,
getAttributes,
getFirstChild,
getLastChild,
getLevel,
getNamespaceURI,
getNextSibling,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
getUid,
hasChildNodes,
isComplete,
isNamespaceNode,
isSupported,
setAttribute,
setComplete,
setLevel |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public short getNodeType()
public java.lang.String getNodeName()
public java.lang.String getName()
DOCTYPE keyword.public java.lang.String getLocalName()
createElement from the Document interface,
it is null.public NamedNodeMap getEntities()
NamedNodeMap containing the general entities, both
external and internal, declared in the DTD. Parameter entities are not
contained. Duplicates are discarded. For example in:
<!DOCTYPE ex SYSTEM "ex.dtd" [ <!ENTITY foo "foo"> <!ENTITY bar "bar"> <!ENTITY bar "bar2"> <!ENTITY % baz "baz"> ]> <ex/>the interface provides access to
foo and the first declaration of
bar but not the second declaration of bar
or baz. Every node in this map also implements the
Entity interface.
entities cannot be altered in any way.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.public java.lang.String getPublicId()
public java.lang.String getSystemId()
public java.lang.String getInternalSubset()
public Node getNamedItem(java.lang.String name)
nameThe - nodeName of a node to retrieve.Node (of any type) with the specified
nodeName, or null if it does not identify
any node in this map.
public Node setNamedItem(Node arg)
throws DOMException
nodeName attribute. If a node with
that name is already present in this map, it is replaced by the new
one.
nodeName attribute is used to derive the name
which the node must be stored under, multiple nodes of certain types
(those that have a "special" string value) cannot be stored as the
names would clash. This is seen as preferable to allowing nodes to be
aliased.argA - node to store in this map. The node will later be
accessible using the value of its nodeName attribute.Node replaces an existing node the
replaced Node is returned, otherwise null
is returned.arg was created from a
different document than the one that created this map.
arg is an
Attr that is already an attribute of another
Element object. The DOM user must explicitly clone
Attr nodes to re-use them in other elements.
public Node removeNamedItem(java.lang.String name)
throws DOMException
nameThe - nodeName of the node to remove.name in
this map.
public Node item(int index)
indexth item in the map. If index
is greater than or equal to the number of nodes in this map, this
returns null.indexIndex - into this map.indexth position in the map, or
null if that is not a valid index.public int getLength()
0 to length-1 inclusive.
public Node getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURIThe - namespace URI of the node to retrieve.localNameThe - local name of the node to retrieve.Node (of any type) with the specified local
name and namespace URI, or null if they do not
identify any node in this map.
public Node setNamedItemNS(Node arg)
throws DOMException
namespaceURI and
localName. If a node with that namespace URI and that
local name is already present in this map, it is replaced by the new
one.
argA - node to store in this map. The node will later be
accessible using the value of its namespaceURI and
localName attributes.Node replaces an existing node the
replaced Node is returned, otherwise null
is returned.arg was created from a
different document than the one that created this map.
arg is an
Attr that is already an attribute of another
Element object. The DOM user must explicitly clone
Attr nodes to re-use them in other elements.
public Node removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
throws DOMException
Node interface. If so, an attribute
immediately appears containing the default value as well as the
corresponding namespace URI, local name, and prefix when applicable.
namespaceURIThe - namespace URI of the node to remove.localNameThe - local name of the node to remove.namespaceURI and localName in this map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||