EntityReference (Java EE 5)

Java EE API


javax.xml.stream.events Interface EntityReference

All Superinterfaces:
XMLEvent, XMLStreamConstants

public interface EntityReference
extends XMLEvent

Implements: XMLEvent

处理实体事件的接口。 此事件报告尚未解析的实体并报告它们未处理的替换文本(如果可用)。如果将 javax.xml.stream.isReplacingEntityReferences 设置为 false,则报告此事件。如果将 javax.xml.stream.isReplacingEntityReferences 设置为 true,则将以透明的方式解析实体引用。 处理实体的方法有两种: (1)如果将 javax.xml.stream.isReplacingEntityReferences 设置为 true,则以透明的方式解析所有实体引用并将它们作为报告标记。(2)如果将 javax.xml.stream.isReplacingEntityReferences 设置为 false,则将实体引用作为 EntityReference 事件报告。
英文文档:

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
 
Method Summary
 EntityDeclaration
 String
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
 

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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!