ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
NamedNodeMap |
getEntities()
一个
NamedNodeMap 包含一般的实体,外部和内部,在DTD中声明。
|
String |
getInternalSubset()
内部子集为一个字符串,或
null 如果没有。
|
String |
getName()
DTD名称;即,名字立即
DOCTYPE 关键词如下。
|
NamedNodeMap |
getNotations()
在DTD中声明一个
NamedNodeMap 包含符号。
|
String |
getPublicId()
外部子集的公共标识符。
|
String |
getSystemId()
外部子集的系统标识符。
|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
String getName()
DOCTYPE
关键词如下。
NamedNodeMap getEntities()
NamedNodeMap
包含一般的实体,外部和内部,在DTD中声明。参数实体不包含。重复被丢弃。例如:
<!DOCTYPE前系统”ex.dtd”[ <!实体Foo“foo”> <!实体吧“酒吧”>!实体酒吧”bar2”> <!实体为“巴兹”>巴兹 <前>前>接口提供了访问
foo
和
bar
首次申报但不
bar
或
baz
二宣言。在这张Map上的每一个节点进行了
Entity
接口。
entities
不能以任何方式改变。
NamedNodeMap getNotations()
NamedNodeMap
包含符号。重复被丢弃。在这张Map上的每一个节点进行了
Notation
接口。
notations
不能以任何方式改变。
String getPublicId()
String getSystemId()
String getInternalSubset()
null
如果没有。这是不包含括号界定。
注:实际返回的内容取决于有多少信息可以实现。这可能会有所不同,这取决于各种参数,包括用于构建文档的XML处理器。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.