com.sun.xml.fastinfoset.stax.events
Class EntityReferenceEvent

java.lang.Object
  extended bycom.sun.xml.fastinfoset.stax.events.EventBase
      extended bycom.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 inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
 
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
 
Constructor Summary
EntityReferenceEvent()
           
EntityReferenceEvent(java.lang.String entityName, javax.xml.stream.events.EntityDeclaration entityDeclaration)
           
 
Method Summary
 javax.xml.stream.events.EntityDeclaration getDeclaration()
          Return the declaration of this entity.
 java.lang.String getName()
          The name of the entity
protected  void init()
           
 void setDeclaration(javax.xml.stream.events.EntityDeclaration declaration)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

EntityReferenceEvent

public EntityReferenceEvent()

EntityReferenceEvent

public EntityReferenceEvent(java.lang.String entityName,
                            javax.xml.stream.events.EntityDeclaration entityDeclaration)
Method Detail

getName

public java.lang.String getName()
The name of the entity

Specified by:
getName in interface javax.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:
getDeclaration in interface javax.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()

init

protected void init()