public abstract class EntityDecl extends WEntityDeclaration
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mDeclaredExternally
Flag that can be set to indicate that the declaration was in the
external DTD subset.
|
| Constructor and Description |
|---|
EntityDecl(javax.xml.stream.Location loc,
java.lang.String name,
java.net.URL ctxt) |
| Modifier and Type | Method and Description |
|---|---|
abstract WstxInputSource |
expand(WstxInputSource parent,
javax.xml.stream.XMLResolver res,
ReaderConfig cfg,
int xmlVersion)
Method called to create the new input source through which expansion
value of the entity can be read.
|
java.lang.String |
getBaseURI() |
javax.xml.stream.Location |
getLocation() |
java.lang.String |
getName() |
abstract java.lang.String |
getNotationName() |
abstract java.lang.String |
getPublicId() |
abstract char[] |
getReplacementChars() |
abstract java.lang.String |
getReplacementText() |
abstract int |
getReplacementText(java.io.Writer w) |
int |
getReplacementTextLength() |
abstract java.lang.String |
getSystemId() |
abstract boolean |
isExternal() |
abstract boolean |
isParsed() |
void |
markAsExternallyDeclared() |
boolean |
wasDeclaredExternally() |
abstract void |
writeEnc(java.io.Writer w) |
getEventType, writeAsEncodedUnicode, writeUsingasCharacters, asEndElement, asStartElement, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, throwFromIOE, toStringprotected boolean mDeclaredExternally
public EntityDecl(javax.xml.stream.Location loc,
java.lang.String name,
java.net.URL ctxt)
public void markAsExternallyDeclared()
public final java.lang.String getBaseURI()
getBaseURI in interface javax.xml.stream.events.EntityDeclarationgetBaseURI in class WEntityDeclarationpublic final java.lang.String getName()
getName in interface javax.xml.stream.events.EntityDeclarationgetName in class WEntityDeclarationpublic final javax.xml.stream.Location getLocation()
getLocation in interface javax.xml.stream.events.XMLEventgetLocation in class WEventpublic abstract java.lang.String getNotationName()
getNotationName in interface javax.xml.stream.events.EntityDeclarationgetNotationName in class WEntityDeclarationpublic abstract java.lang.String getPublicId()
getPublicId in interface javax.xml.stream.events.EntityDeclarationgetPublicId in class WEntityDeclarationpublic abstract java.lang.String getReplacementText()
getReplacementText in interface javax.xml.stream.events.EntityDeclarationgetReplacementText in class WEntityDeclarationpublic abstract int getReplacementText(java.io.Writer w)
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getSystemId()
getSystemId in interface javax.xml.stream.events.EntityDeclarationgetSystemId in class WEntityDeclarationpublic boolean wasDeclaredExternally()
public abstract void writeEnc(java.io.Writer w)
throws java.io.IOException
writeEnc in class WEntityDeclarationjava.io.IOExceptionpublic abstract char[] getReplacementChars()
public final int getReplacementTextLength()
public abstract boolean isExternal()
public abstract boolean isParsed()
public abstract WstxInputSource expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion) throws java.io.IOException, javax.xml.stream.XMLStreamException
java.io.IOExceptionjavax.xml.stream.XMLStreamException