JavaTM 2 Platform
Standard Ed. 6

javax.xml.stream.events
接口 EntityDeclaration

所有超级接口:
XMLEvent, XMLStreamConstants

public interface EntityDeclaration
extends XMLEvent

处理实体声明的接口。 此接口用于记录和报告未解析的实体声明。

从以下版本开始:
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
 
方法摘要
 String getBaseURI()
          获取此引用的基准 URI,如果此信息不可用,则获得 null
 String getName()
          实体的名称
 String getNotationName()
          关联的注释的名称。
 String getPublicId()
          实体的公共标识符,如果未给定该标识符,则为 null
 String getReplacementText()
          实体的替换文本。
 String getSystemId()
          实体的系统标识符。
 
从接口 javax.xml.stream.events.XMLEvent 继承的方法
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

方法详细信息

getPublicId

String getPublicId()
实体的公共标识符,如果未给定该标识符,则为 null

返回:
此声明的公共 ID 或 null

getSystemId

String getSystemId()
实体的系统标识符。

返回:
此声明的系统 ID 或 null

getName

String getName()
实体的名称

返回:
名称,不可以为 null

getNotationName

String getNotationName()
关联的注释的名称。

返回:
注释的名称

getReplacementText

String getReplacementText()
实体的替换文本。如果该实体是一个内部实体,则此方法只返回非 null 结果。

返回:
null 或替换文本

getBaseURI

String getBaseURI()
获取此引用的基准 URI,如果此信息不可用,则获得 null

返回:
基准 URI 或 null

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only