-  
       
- All Superinterfaces:
 -  
         
XMLEvent,XMLStreamConstants 
public interface DTD extends XMLEvent
这是处理DTD的事件的顶级接口- 从以下版本开始:
 - 1.6
 
 
-  
        
       
-  
             
字段汇总
-  
               
Fields declared in interface 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 
 -  
               
 
-  
             
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 StringgetDocumentTypeDeclaration()将整个文档类型声明作为字符串返回,包括内部DTD子集。List<EntityDeclaration>getEntities()返回一个List,其中包含在DTD中声明的外部和内部通用实体。List<NotationDeclaration>getNotations()返回包含DTD中声明的符号的List。ObjectgetProcessedDTD()返回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。 如果它不为null,则必须返回与XML 1.0规范中的doctypedecl生成匹配的整个文档类型声明- 结果
 - 文件类型声明
 
 
-  
getProcessedDTD
Object getProcessedDTD()
返回DTD的实现定义表示。 如果没有可用的表示,则此方法可能返回null。- 结果
 - DTD的表示
 
 
-  
getNotations
List<NotationDeclaration> getNotations()
返回包含DTD中声明的符号的List。 此列表必须包含NotationDeclaration事件。- 结果
 - NotationDeclaration事件的无序列表
 - 另请参见:
 -  
              
NotationDeclaration 
 
-  
getEntities
List<EntityDeclaration> getEntities()
返回一个List,其中包含在DTD中声明的外部和内部通用实体。 此列表必须包含EntityDeclaration事件。- 结果
 - EntityDeclaration事件的无序列表
 - 另请参见:
 -  
              
EntityDeclaration 
 
 -  
 
 -