-
- All Superinterfaces:
-
XMLEvent
,XMLStreamConstants
public interface Comment extends XMLEvent
用于评论事件的界面- 从以下版本开始:
- 1.6
- Version:
- 1.0
-
-
Field Summary
-
Fields inherited from 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
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 String
getText()
返回注释的字符串数据,如果不存在则返回空字符串-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
-
-
-
方法详细信息
-
getText
String getText()
返回注释的字符串数据,如果不存在则返回空字符串
-
-