W3cubDocs

/OpenJDK 21

Interface EntityReference

All Superinterfaces:
XMLEvent, XMLStreamConstants
public interface EntityReference extends XMLEvent
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.
Since:
1.6

Field Summary

Method Summary

Modifier and Type Method Description
EntityDeclaration getDeclaration()
Return the declaration of this entity.
String getName()
The name of the entity

Method Details

getDeclaration

EntityDeclaration getDeclaration()
Return the declaration of this entity.
Returns:
the declaration

getName

String getName()
The name of the entity
Returns:
the entity's name, may not be null

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.xml/javax/xml/stream/events/EntityReference.html