javax.xml.stream.events.EntityDeclaration
, javax.xml.stream.events.XMLEvent
, javax.xml.stream.XMLStreamConstants
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 | Description |
---|---|---|
protected java.lang.String |
name |
|
protected java.lang.String |
replacementText |
Constructor | Description |
---|---|
EntityDeclarationEvent(java.lang.String name,
java.lang.String replText) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doWriteAsEncodedUnicode(java.io.Writer writer) |
Template method to be implemented by sub-classes.
|
java.lang.String |
getBaseURI() |
|
java.lang.String |
getName() |
|
java.lang.String |
getNotationName() |
|
java.lang.String |
getPublicId() |
|
java.lang.String |
getReplacementText() |
|
java.lang.String |
getSystemId() |
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()
getReplacementText
in interface javax.xml.stream.events.EntityDeclaration
public java.lang.String getName()
getName
in interface javax.xml.stream.events.EntityDeclaration
public java.lang.String getBaseURI()
getBaseURI
in interface javax.xml.stream.events.EntityDeclaration
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.stream.events.EntityDeclaration
getPublicId
in class BaseEvent
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.events.EntityDeclaration
getSystemId
in class BaseEvent
public java.lang.String getNotationName()
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