Top Fields Constructors Methods
com.sun.xml.fastinfoset.stax.events

public Class EntityReferenceEvent

extends EventBase
implements EntityReference
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.EntityReference, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
javax.xml.stream.events.EntityDeclaration, .EntityReference

Field Summary

Modifier and TypeField and Description
private EntityDeclaration
private String
Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
_eventType_location

Constructor Summary

AccessConstructor and Description
public
public
EntityReferenceEvent(String entityName, EntityDeclaration entityDeclaration)

Method Summary

Modifier and TypeMethod and Description
public EntityDeclaration
getDeclaration()

Implements javax.xml.stream.events.EntityReference.getDeclaration.

Return the declaration of this entity.

public String

Returns:

the entity's name, may not be null
getName
()

Implements javax.xml.stream.events.EntityReference.getName.

The name of the entity

protected void
init()

public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypegetSystemIdisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementsetEventTypesetLocationwriteAsEncodedUnicode

Field Detail

_entityDeclarationback to summary
private EntityDeclaration _entityDeclaration
_entityNameback to summary
private String _entityName

Constructor Detail

EntityReferenceEventback to summary
public EntityReferenceEvent()
Annotations
@SuppressWarnings:this-escape
EntityReferenceEventback to summary
public EntityReferenceEvent(String entityName, EntityDeclaration entityDeclaration)
Annotations
@SuppressWarnings:this-escape

Method Detail

getDeclarationback to summary
public EntityDeclaration getDeclaration()

Implements javax.xml.stream.events.EntityReference.getDeclaration.

Return the declaration of this entity.

Annotations
@Override
getNameback to summary
public String getName()

Implements javax.xml.stream.events.EntityReference.getName.

The name of the entity

Returns:String

the entity's name, may not be null

Annotations
@Override
initback to summary
protected void init()
setDeclarationback to summary
public void setDeclaration(EntityDeclaration declaration)
setNameback to summary
public void setName(String name)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.