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.
|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
EntityDecl(Location loc,
String name,
URL ctxt) |
| Modifier and Type | Method and 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) |
equals, getEventType, hashCode, writeAsEncodedUnicode, writeUsingaddHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElementprotected boolean mDeclaredExternally
public void markAsExternallyDeclared()
public final String getBaseURI()
getBaseURI in interface EntityDeclarationgetBaseURI in class WEntityDeclarationpublic final String getName()
getName in interface EntityDeclarationgetName in class WEntityDeclarationpublic abstract String getNotationName()
getNotationName in interface EntityDeclarationgetNotationName in class WEntityDeclarationpublic abstract String getPublicId()
getPublicId in interface EntityDeclarationgetPublicId in class WEntityDeclarationpublic abstract String getReplacementText()
getReplacementText in interface EntityDeclarationgetReplacementText in class WEntityDeclarationpublic abstract int getReplacementText(Writer w) throws IOException
IOExceptionpublic abstract String getSystemId()
getSystemId in interface EntityDeclarationgetSystemId in class WEntityDeclarationpublic boolean wasDeclaredExternally()
public abstract void writeEnc(Writer w) throws IOException
writeEnc in class WEntityDeclarationIOExceptionpublic 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
IOExceptionXMLStreamExceptionCopyright © 2024 FasterXML. All rights reserved.