|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream.events Interface EntityDeclaration
- All Superinterfaces:
- XMLEvent, XMLStreamConstants
public interface EntityDeclaration
- extends XMLEvent
Implements:
XMLEvent
处理实体声明的接口。 此接口用于记录和报告未解析的实体声明。
version | 1.0 |
An interface for handling Entity Declarations This interface is used to record and report unparsed entity declarations.
- Version:
- 1.0
- Author:
- Copyright (c) 2003 by BEA Systems. All Rights Reserved.
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 |
Method Summary | |
---|---|
String |
getBaseURI()
Get the base URI for this reference or null if this information is not available |
String |
getName()
The entity's name |
String |
getNotationName()
The name of the associated notation. |
String |
getPublicId()
The entity's public identifier, or null if none was given |
String |
getReplacementText()
The replacement text of the entity. |
String |
getSystemId()
The entity's system identifier. |
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 |
Method Detail |
---|
public String
getPublicId()
实体的公共标识符,如果未给定该标识符,则为 null
return | 此声明的公共 ID 或 null |
getPublicId
String getPublicId()
- The entity's public identifier, or null if none was given
- Returns:
- the public ID for this declaration or null
public String
getSystemId()
实体的系统标识符。
return | 此声明的系统 ID 或 null |
getSystemId
String getSystemId()
- The entity's system identifier.
- Returns:
- the system ID for this declaration or null
public String
getName()
实体的名称
return | 名称,不可以为 null |
getName
String getName()
- The entity's name
- Returns:
- the name, may not be null
public String
getNotationName()
相关注释的名称。
return | 注释的名称 |
getNotationName
String getNotationName()
- The name of the associated notation.
- Returns:
- the notation name
public String
getReplacementText()
实体的替换文本。如果该实体是一个内部实体,则此方法只返回非 null 结果。
return | null 或替换文本 |
getReplacementText
String getReplacementText()
- The replacement text of the entity.
This method will only return non-null
if this is an internal entity.
- Returns:
- null or the replacment text
public String
getBaseURI()
获取此引用的基准 URI,如果此信息不可用,则获得 null
return | 基准 URI 或 null |
getBaseURI
String getBaseURI()
- Get the base URI for this reference
or null if this information is not available
- Returns:
- the base URI or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!