|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream.events Interface EntityReference
- All Superinterfaces:
- XMLEvent, XMLStreamConstants
public interface EntityReference
- extends XMLEvent
处理实体事件的接口。 此事件报告尚未解析的实体并报告它们未处理的替换文本(如果可用)。如果将 javax.xml.stream.isReplacingEntityReferences 设置为 false,则报告此事件。如果将 javax.xml.stream.isReplacingEntityReferences 设置为 true,则将以透明的方式解析实体引用。 处理实体的方法有两种: (1)如果将 javax.xml.stream.isReplacingEntityReferences 设置为 true,则以透明的方式解析所有实体引用并将它们作为报告标记。(2)如果将 javax.xml.stream.isReplacingEntityReferences 设置为 false,则将实体引用作为 EntityReference 事件报告。
version | 1.0 |
An interface for handling Entity events. This event reports entities that have not been resolved and reports their replacement text unprocessed (if available). This event will be reported if javax.xml.stream.isReplacingEntityReferences is set to false. If javax.xml.stream.isReplacingEntityReferences is set to true entity references will be resolved transparently. Entities are handled in two possible ways: (1) If javax.xml.stream.isReplacingEntityReferences is set to true all entity references are resolved and reported as markup transparently. (2) If javax.xml.stream.isReplacingEntityReferences is set to false Entity references are reported as an EntityReference Event.
- 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 | |
---|---|
EntityDeclaration |
getDeclaration()
Return the declaration of this entity. |
String |
getName()
The name of the entity |
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 EntityDeclaration
getDeclaration()
返回此实体的声明。
英文文档:
getDeclaration
EntityDeclaration getDeclaration()
- Return the declaration of this entity.
public String
getName()
实体的名称
return | 实体的名称,不可以为 null |
getName
String getName()
- The name of the entity
- Returns:
- the entity's name, may not be 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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!