public class EntityDeclarationEvent extends BaseEvent implements javax.xml.stream.events.EntityDeclaration
EntityDeclaration
. Since no external
or unparsed entities are supported (yet?), this is quite simplistic
implementation.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.lang.String |
replacementText |
Constructor and Description |
---|
EntityDeclarationEvent(java.lang.String name,
java.lang.String replText) |
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()
Get the base URI for this reference
or null if this information is not available
|
java.lang.String |
getName()
The entity's name
|
java.lang.String |
getNotationName()
The name of the associated notation.
|
java.lang.String |
getPublicId()
Returns the public ID of the XML
|
java.lang.String |
getReplacementText()
The replacement text of the entity.
|
java.lang.String |
getSystemId()
Returns the system ID of the XML
|
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, toString, 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
protected final java.lang.String name
protected final java.lang.String replacementText
public EntityDeclarationEvent(java.lang.String name, java.lang.String replText)
public java.lang.String getReplacementText()
javax.xml.stream.events.EntityDeclaration
getReplacementText
in interface javax.xml.stream.events.EntityDeclaration
public java.lang.String getName()
javax.xml.stream.events.EntityDeclaration
getName
in interface javax.xml.stream.events.EntityDeclaration
public java.lang.String getBaseURI()
javax.xml.stream.events.EntityDeclaration
getBaseURI
in interface javax.xml.stream.events.EntityDeclaration
public java.lang.String getPublicId()
javax.xml.stream.Location
getPublicId
in interface javax.xml.stream.events.EntityDeclaration
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.events.EntityDeclaration
getSystemId
in interface javax.xml.stream.Location
getSystemId
in class BaseEvent
public java.lang.String getNotationName()
javax.xml.stream.events.EntityDeclaration
getNotationName
in interface javax.xml.stream.events.EntityDeclaration
protected void doWriteAsEncodedUnicode(java.io.Writer writer) throws java.io.IOException
BaseEvent
doWriteAsEncodedUnicode
in class BaseEvent
java.io.IOException