Module com.sun.xml.fastinfoset
Class EntityReferenceEvent
- java.lang.Object
-
- com.sun.xml.fastinfoset.stax.events.EventBase
-
- com.sun.xml.fastinfoset.stax.events.EntityReferenceEvent
-
- All Implemented Interfaces:
javax.xml.stream.events.EntityReference,javax.xml.stream.events.XMLEvent,javax.xml.stream.XMLStreamConstants
public class EntityReferenceEvent extends EventBase implements javax.xml.stream.events.EntityReference
-
-
Field Summary
Fields Modifier and Type Field Description private javax.xml.stream.events.EntityDeclaration_entityDeclarationprivate java.lang.String_entityName-
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
-
-
Constructor Summary
Constructors Constructor Description EntityReferenceEvent()EntityReferenceEvent(java.lang.String entityName, javax.xml.stream.events.EntityDeclaration entityDeclaration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.stream.events.EntityDeclarationgetDeclaration()Return the declaration of this entity.java.lang.StringgetName()The name of the entityprotected voidinit()voidsetDeclaration(javax.xml.stream.events.EntityDeclaration declaration)voidsetName(java.lang.String name)java.lang.StringtoString()-
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
getName
public java.lang.String getName()
The name of the entity- Specified by:
getNamein interfacejavax.xml.stream.events.EntityReference- Returns:
- the entity's name, may not be null
-
getDeclaration
public javax.xml.stream.events.EntityDeclaration getDeclaration()
Return the declaration of this entity.- Specified by:
getDeclarationin interfacejavax.xml.stream.events.EntityReference
-
setName
public void setName(java.lang.String name)
-
setDeclaration
public void setDeclaration(javax.xml.stream.events.EntityDeclaration declaration)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
init
protected void init()
-
-