|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.stree.Child | +--weblogic.apache.xalan.stree.DocumentTypeImpl
Class to hold information about a DocumentType node
Fields inherited from class weblogic.apache.xalan.stree.Child |
m_doc,
m_parent |
Method Summary | |
org.w3c.dom.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. |
org.w3c.dom.Node |
getNamedItem(java.lang.String name)
Retrieves a node specified by name. |
org.w3c.dom.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. |
org.w3c.dom.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. |
org.w3c.dom.Node |
item(int index)
Returns the index th item in the map. |
org.w3c.dom.Node |
removeNamedItem(java.lang.String name)
Removes a node specified by name. |
org.w3c.dom.Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Removes a node specified by local name and namespace URI. |
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node arg)
Adds a node using its nodeName attribute. |
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.Node arg)
Adds a node using its namespaceURI and
localName . |
Methods inherited from class weblogic.apache.xalan.stree.Child |
dispatchCharactersEvent,
getAttributes,
getFirstChild,
getLastChild,
getLevel,
getNamespaceURI,
getNextSibling,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
getTransformer,
getUid,
hasChildNodes,
isComplete,
isNamespaceNode,
isSupported,
setAttribute,
setComplete,
setDoc,
setLevel,
setParent,
setUid,
throwIfParseError,
throwParseError |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
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 org.w3c.dom.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 org.w3c.dom.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 org.w3c.dom.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 org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg) throws org.w3c.dom.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 org.w3c.dom.Node removeNamedItem(java.lang.String name) throws org.w3c.dom.DOMException
nameThe
- nodeName
of the node to remove.name
in
this map.
public org.w3c.dom.Node item(int index)
index
th 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.index
th position in the map, or
null
if that is not a valid index.public int getLength()
0
to length-1
inclusive.
public org.w3c.dom.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 org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.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 org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.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.
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |