|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.teamkonzept.dom4jb.dom.NodeList | +--com.teamkonzept.dom4jb.dom.Node | +--com.teamkonzept.dom4jb.dom.DocumentType
%TODO% ALLES
Field Summary |
Fields inherited from class com.teamkonzept.dom4jb.dom.Node |
document |
Fields inherited from class com.teamkonzept.dom4jb.dom.NodeList |
EMPTY, initialCapacity, nodeData, nodeIterator, parent, size |
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 | |
DocumentType(Document doc)
Creates new DocumentType |
Method Summary | |
boolean |
accept(Filter filter)
|
NamedNodeMap |
getEntities()
A NamedNodeMap containing the general entities, both
external and internal, declared in the DTD. |
String |
getInternalSubset()
The internal subset as a string, or null if there is none.
|
String |
getLocalName()
Returns the local part of the qualified name of this node. |
String |
getName()
The name of DTD; i.e., the name immediately following the DOCTYPE keyword. |
String |
getNamespaceURI()
The namespace URI of this node, or null if it is
unspecified.
|
String |
getNodeName()
The name of this node, depending on its type; see the table above. |
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 |
getPrefix()
The namespace prefix of this node, or null if it is
unspecified.
|
String |
getPublicId()
The public identifier of the external subset. |
String |
getSystemId()
The system identifier of the external subset. |
void |
setPrefix(String prefix)
The namespace prefix of this node, or null if it is
unspecified.
|
Methods inherited from class com.teamkonzept.dom4jb.dom.Node |
appendChild, attach, cloneNode, getAttributes, getChildIndex, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue |
Methods inherited from class com.teamkonzept.dom4jb.dom.NodeList |
add, clear, ensureCapacity, get, getLength, getParentNode, isEmpty, item, setIterator, setParentNode, size, trimToSize |
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, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue |
Constructor Detail |
public DocumentType(Document doc)
Method Detail |
public boolean accept(Filter filter)
accept
in class Node
public String getPublicId()
getPublicId
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 String getNodeName()
getNodeName
in interface Node
public String getPrefix()
null
if it is
unspecified.
nodeName
attribute, which holds the qualified name, as
well as the tagName
and name
attributes of
the Element
and Attr
interfaces, when
applicable.
namespaceURI
and localName
do not change.
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.
getPrefix
in interface Node
getPrefix
in class Node
public final short getNodeType()
getNodeType
in interface Node
public String getNamespaceURI()
null
if it is
unspecified.
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.Per
the Namespaces in XML Specification an attribute does not inherit
its namespace from the element it is attached to. If an attribute is
not explicitly given a namespace, it simply has no namespace.
getNamespaceURI
in interface Node
getNamespaceURI
in class Node
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. 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.
getEntities
in interface DocumentType
public String getSystemId()
getSystemId
in interface DocumentType
public String getLocalName()
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.
getLocalName
in interface Node
getLocalName
in class Node
public String getInternalSubset()
null
if there is none.
This is does not contain the delimiting square brackets.The actual
content returned depends on how much information is available to the
implementation. This may vary depending on various parameters,
including the XML processor used to build the document.
getInternalSubset
in interface DocumentType
public void setPrefix(String prefix)
null
if it is
unspecified.
nodeName
attribute, which holds the qualified name, as
well as the tagName
and name
attributes of
the Element
and Attr
interfaces, when
applicable.
namespaceURI
and localName
do not change.
ELEMENT_NODE
and
ATTRIBUTE_NODE
and nodes created with a DOM Level 1
method, such as createElement
from the
Document
interface, this is always null
.
setPrefix
in interface Node
setPrefix
in class Node
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |