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, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public 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.EntityReference
getName
in interface javax.xml.stream.events.EntityReference
public 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.Location
getPublicId
in interface javax.xml.stream.Location
getPublicId
in class BaseEvent
public java.lang.String getSystemId()
javax.xml.stream.Location
getSystemId
in interface javax.xml.stream.Location
getSystemId
in class BaseEvent
public javax.xml.stream.events.EntityDeclaration getDeclaration()
javax.xml.stream.events.EntityReference
getDeclaration
in interface javax.xml.stream.events.EntityReference
protected void init()
protected void doWriteAsEncodedUnicode(java.io.Writer writer) throws java.io.IOException
BaseEvent
doWriteAsEncodedUnicode
in class BaseEvent
java.io.IOException