com.bea.xml.stream.events

Class EntityDeclarationEvent

Implemented Interfaces:
javax.xml.stream.events.EntityDeclaration, javax.xml.stream.Location, javax.xml.stream.events.XMLEvent

public class EntityDeclarationEvent
extends BaseEvent
implements javax.xml.stream.events.EntityDeclaration

Simple implementation of EntityDeclaration. Since no external or unparsed entities are supported (yet?), this is quite simplistic implementation.
Author:
Tatu Saloranta

Field Summary

protected String
name
protected String
replacementText

Constructor Summary

EntityDeclarationEvent(String name, String replText)

Method Summary

protected void
doWriteAsEncodedUnicode(java.io.Writer writer)
String
getBaseURI()
String
getName()
String
getNotationName()
String
getPublicId()
String
getReplacementText()
String
getSystemId()

Methods inherited from class com.bea.xml.stream.events.BaseEvent

asCharacters, asEndElement, asStartElement, doWriteAsEncodedUnicode, getCharacterOffset, getColumnNumber, getEventType, getLineNumber, getLocation, getLocationURI, getPublicId, getSchemaType, getSourceName, getSystemId, getTypeAsString, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, recycle, setCharacterOffset, setColumnNumber, setEventType, setLineNumber, setLocationURI, toString, writeAsEncodedUnicode

Field Details

name

protected final String name

replacementText

protected final String replacementText

Constructor Details

EntityDeclarationEvent

public EntityDeclarationEvent(String name,
                              String replText)

Method Details

doWriteAsEncodedUnicode

protected void doWriteAsEncodedUnicode(java.io.Writer writer)
            throws java.io.IOException

getBaseURI

public String getBaseURI()
Specified by:
getBaseURI in interface javax.xml.stream.events.EntityDeclaration

getName

public String getName()
Specified by:
getName in interface javax.xml.stream.events.EntityDeclaration

getNotationName

public String getNotationName()
Specified by:
getNotationName in interface javax.xml.stream.events.EntityDeclaration

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface javax.xml.stream.events.EntityDeclaration
getPublicId in interface javax.xml.stream.Location
Overrides:
getPublicId in interface BaseEvent

getReplacementText

public String getReplacementText()
Specified by:
getReplacementText in interface javax.xml.stream.events.EntityDeclaration

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface javax.xml.stream.events.EntityDeclaration
getSystemId in interface javax.xml.stream.Location
Overrides:
getSystemId in interface BaseEvent