public class EntityReferenceEvent extends BaseEvent implements javax.xml.stream.events.EntityReference
| Constructor and Description |
|---|
EntityReferenceEvent() |
EntityReferenceEvent(java.lang.String name,
javax.xml.stream.events.EntityDeclaration ed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doWriteAsEncodedUnicode(java.io.Writer writer)
Template method to be implemented by sub-classes.
|
java.lang.String |
getBaseURI() |
javax.xml.stream.events.EntityDeclaration |
getDeclaration()
Return the declaration of this entity.
|
java.lang.String |
getName()
The name of the entity
|
java.lang.String |
getPublicId()
Returns the public ID of the XML
|
java.lang.String |
getReplacementText() |
java.lang.String |
getSystemId()
Returns the system ID of the XML
|
protected void |
init() |
void |
setName(java.lang.String name) |
void |
setReplacementText(java.lang.String text) |
java.lang.String |
toString()
toString() overridden to output more information than what the
default implementation from base event class outputs.
|
asCharacters, asEndElement, asStartElement, getCharacterOffset, getColumnNumber, getEventType, getLineNumber, getLocation, getLocationURI, getSchemaType, getSourceName, getTypeAsString, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, recycle, setCharacterOffset, setColumnNumber, setEventType, setLineNumber, setLocationURI, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic EntityReferenceEvent()
public EntityReferenceEvent(java.lang.String name,
javax.xml.stream.events.EntityDeclaration ed)
public java.lang.String getReplacementText()
public java.lang.String getName()
javax.xml.stream.events.EntityReferencegetName in interface javax.xml.stream.events.EntityReferencepublic void setName(java.lang.String name)
public void setReplacementText(java.lang.String text)
public java.lang.String getBaseURI()
public java.lang.String getPublicId()
javax.xml.stream.LocationgetPublicId in interface javax.xml.stream.LocationgetPublicId in class BaseEventpublic java.lang.String getSystemId()
javax.xml.stream.LocationgetSystemId in interface javax.xml.stream.LocationgetSystemId in class BaseEventpublic javax.xml.stream.events.EntityDeclaration getDeclaration()
javax.xml.stream.events.EntityReferencegetDeclaration in interface javax.xml.stream.events.EntityReferenceprotected void init()
protected void doWriteAsEncodedUnicode(java.io.Writer writer)
throws java.io.IOException
BaseEventdoWriteAsEncodedUnicode in class BaseEventjava.io.IOException