- 所有父级接口:
XMLEvent
,XMLStreamConstants
这是处理 DTD 事件的顶级接口
- 自从:
- 1.6
-
字段摘要
在接口 javax.xml.stream.XMLStreamConstants 中声明的字段
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
方法总结
修饰符和类型方法描述将整个文档类型声明作为字符串返回,包括内部 DTD 子集。返回包含在 DTD 中声明的外部和内部一般实体的列表。返回包含 DTD 中声明的符号的列表。返回 DTD 的实现定义表示。在接口 javax.xml.stream.events.XMLEvent 中声明的方法
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
方法详情
-
getDocumentTypeDeclaration
String getDocumentTypeDeclaration()将整个文档类型声明作为字符串返回,包括内部 DTD 子集。如果没有内部子集,这可能为 null。如果它不为空,则它必须返回与 XML 1.0 规范中的 doctypedecl 生产相匹配的整个文档类型声明- 返回:
- 文档类型声明
-
getProcessedDTD
Object getProcessedDTD()返回 DTD 的实现定义表示。如果没有可用的表示,此方法可能返回 null。- 返回:
- DTD 的表示
-
getNotations
List <NotationDeclaration > getNotations()返回包含 DTD 中声明的符号的列表。此list必须包含 NotationDeclaration 事件。- 返回:
- NotationDeclaration 事件的无序列表
- 参见:
-
getEntities
List <EntityDeclaration > getEntities()返回包含在 DTD 中声明的外部和内部一般实体的列表。此list必须包含 EntityDeclaration 事件。- 返回:
- EntityDeclaration 事件的无序列表
- 参见:
-