com.ctc.wstx.ent
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, writeUsing
asCharacters, asEndElement, asStartElement, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, throwFromIOE, toString
protected 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.EntityDeclaration
getBaseURI
in class WEntityDeclaration
public final java.lang.String getName()
getName
in interface javax.xml.stream.events.EntityDeclaration
getName
in class WEntityDeclaration
public final javax.xml.stream.Location getLocation()
getLocation
in interface javax.xml.stream.events.XMLEvent
getLocation
in class WEvent
public abstract java.lang.String getNotationName()
getNotationName
in interface javax.xml.stream.events.EntityDeclaration
getNotationName
in class WEntityDeclaration
public abstract java.lang.String getPublicId()
getPublicId
in interface javax.xml.stream.events.EntityDeclaration
getPublicId
in class WEntityDeclaration
public abstract java.lang.String getReplacementText()
getReplacementText
in interface javax.xml.stream.events.EntityDeclaration
getReplacementText
in class WEntityDeclaration
public abstract int getReplacementText(java.io.Writer w) throws java.io.IOException
java.io.IOException
public abstract java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.events.EntityDeclaration
getSystemId
in class WEntityDeclaration
public boolean wasDeclaredExternally()
public abstract void writeEnc(java.io.Writer w) throws java.io.IOException
writeEnc
in class WEntityDeclaration
java.io.IOException
public 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.IOException
javax.xml.stream.XMLStreamException