EntityDeclaration
, XMLEvent
, XMLStreamConstants
public abstract class EntityDecl extends WEntityDeclaration
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
mDeclaredExternally |
Flag that can be set to indicate that the declaration was in the
external DTD subset.
|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor | Description |
---|---|
EntityDecl(Location loc,
String name,
URL ctxt) |
Modifier and Type | Method | Description |
---|---|---|
abstract WstxInputSource |
expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
Method called to create the new input source through which expansion
value of the entity can be read.
|
String |
getBaseURI() |
|
String |
getName() |
|
abstract String |
getNotationName() |
|
abstract String |
getPublicId() |
|
abstract char[] |
getReplacementChars() |
|
abstract String |
getReplacementText() |
|
abstract int |
getReplacementText(Writer w) |
|
int |
getReplacementTextLength() |
|
abstract String |
getSystemId() |
|
abstract boolean |
isExternal() |
|
abstract boolean |
isParsed() |
|
void |
markAsExternallyDeclared() |
|
boolean |
wasDeclaredExternally() |
|
abstract void |
writeEnc(Writer w) |
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getEventType, hashCode, writeAsEncodedUnicode, writeUsing
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
protected boolean mDeclaredExternally
public void markAsExternallyDeclared()
public final String getBaseURI()
getBaseURI
in interface EntityDeclaration
getBaseURI
in class WEntityDeclaration
public final String getName()
getName
in interface EntityDeclaration
getName
in class WEntityDeclaration
public abstract String getNotationName()
getNotationName
in interface EntityDeclaration
getNotationName
in class WEntityDeclaration
public abstract String getPublicId()
getPublicId
in interface EntityDeclaration
getPublicId
in class WEntityDeclaration
public abstract String getReplacementText()
getReplacementText
in interface EntityDeclaration
getReplacementText
in class WEntityDeclaration
public abstract int getReplacementText(Writer w) throws IOException
IOException
public abstract String getSystemId()
getSystemId
in interface EntityDeclaration
getSystemId
in class WEntityDeclaration
public boolean wasDeclaredExternally()
public abstract void writeEnc(Writer w) throws IOException
writeEnc
in class WEntityDeclaration
IOException
public abstract char[] getReplacementChars()
public final int getReplacementTextLength()
public abstract boolean isExternal()
public abstract boolean isParsed()
public abstract WstxInputSource expand(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion) throws IOException, XMLStreamException
IOException
XMLStreamException
Copyright © 2019 FasterXML. All rights reserved.