public abstract class WEntityDeclaration extends org.codehaus.stax2.ri.evt.BaseEventImpl implements EntityDeclaration
EntityDecl
instance.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 |
---|
WEntityDeclaration(Location loc) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
abstract String |
getBaseURI() |
int |
getEventType() |
abstract String |
getName() |
abstract String |
getNotationName() |
abstract String |
getPublicId() |
abstract String |
getReplacementText() |
abstract String |
getSystemId() |
int |
hashCode() |
void |
writeAsEncodedUnicode(Writer w) |
abstract void |
writeEnc(Writer w) |
void |
writeUsing(org.codehaus.stax2.XMLStreamWriter2 w)
This method does not make much sense for this event type -- the reason
being that the entity declarations can only be written as part of
a DTD (internal or external subset), not separately.
|
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
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
public WEntityDeclaration(Location loc)
public abstract String getBaseURI()
getBaseURI
in interface EntityDeclaration
public abstract String getName()
getName
in interface EntityDeclaration
public abstract String getNotationName()
getNotationName
in interface EntityDeclaration
public abstract String getPublicId()
getPublicId
in interface EntityDeclaration
public abstract String getReplacementText()
getReplacementText
in interface EntityDeclaration
public abstract String getSystemId()
getSystemId
in interface EntityDeclaration
public int getEventType()
getEventType
in interface XMLEvent
getEventType
in class org.codehaus.stax2.ri.evt.BaseEventImpl
public abstract void writeEnc(Writer w) throws IOException
IOException
public void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode
in interface XMLEvent
writeAsEncodedUnicode
in class org.codehaus.stax2.ri.evt.BaseEventImpl
XMLStreamException
public void writeUsing(org.codehaus.stax2.XMLStreamWriter2 w) throws XMLStreamException
writeUsing
in interface org.codehaus.stax2.evt.XMLEvent2
writeUsing
in class org.codehaus.stax2.ri.evt.BaseEventImpl
XMLStreamException
public boolean equals(Object o)
equals
in class org.codehaus.stax2.ri.evt.BaseEventImpl
public int hashCode()
hashCode
in class org.codehaus.stax2.ri.evt.BaseEventImpl
Copyright © 2018 FasterXML. All rights reserved.