public class EntityReferenceEvent extends AbstractXMLEvent implements javax.xml.stream.events.EntityReference
EntityReference
event implementation.Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.events.EntityDeclaration |
declaration
The referenced entity declaration.
|
protected java.lang.String |
name
The referenced entity name.
|
location, schemaType
Constructor and Description |
---|
EntityReferenceEvent(javax.xml.stream.events.EntityReference that) |
EntityReferenceEvent(java.lang.String name,
javax.xml.stream.events.EntityDeclaration declaration) |
EntityReferenceEvent(java.lang.String name,
javax.xml.stream.events.EntityDeclaration declaration,
javax.xml.stream.Location location) |
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.events.EntityDeclaration |
getDeclaration() |
int |
getEventType()
Returns
XMLStreamConstants.ENTITY_REFERENCE . |
java.lang.String |
getName() |
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEvent
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
protected java.lang.String name
protected javax.xml.stream.events.EntityDeclaration declaration
public EntityReferenceEvent(java.lang.String name, javax.xml.stream.events.EntityDeclaration declaration)
public EntityReferenceEvent(java.lang.String name, javax.xml.stream.events.EntityDeclaration declaration, javax.xml.stream.Location location)
public EntityReferenceEvent(javax.xml.stream.events.EntityReference that)
public javax.xml.stream.events.EntityDeclaration getDeclaration()
getDeclaration
in interface javax.xml.stream.events.EntityReference
public java.lang.String getName()
getName
in interface javax.xml.stream.events.EntityReference
public int getEventType()
XMLStreamConstants.ENTITY_REFERENCE
.getEventType
in interface javax.xml.stream.events.XMLEvent