Constructor and Description |
---|
WEntityReference(javax.xml.stream.Location loc,
javax.xml.stream.events.EntityDeclaration decl) |
WEntityReference(javax.xml.stream.Location loc,
java.lang.String name)
This constructor gets called for undeclared/defined entities: we will
still know the name (from the reference), but not how it's defined
(since it is not defined).
|
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.events.EntityDeclaration |
getDeclaration() |
int |
getEventType() |
java.lang.String |
getName() |
boolean |
isEntityReference() |
void |
writeAsEncodedUnicode(java.io.Writer w) |
void |
writeUsing(javax.xml.stream.XMLStreamWriter w) |
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, throwFromIOE, toString
public WEntityReference(javax.xml.stream.Location loc, javax.xml.stream.events.EntityDeclaration decl)
public WEntityReference(javax.xml.stream.Location loc, java.lang.String name)
public javax.xml.stream.events.EntityDeclaration getDeclaration()
getDeclaration
in interface javax.xml.stream.events.EntityReference
public java.lang.String getName()
getName
in interface javax.xml.stream.events.EntityReference
public int getEventType()
getEventType
in interface javax.xml.stream.events.XMLEvent
getEventType
in class WEvent
public boolean isEntityReference()
isEntityReference
in interface javax.xml.stream.events.XMLEvent
isEntityReference
in class WEvent
public void writeAsEncodedUnicode(java.io.Writer w) throws javax.xml.stream.XMLStreamException
writeAsEncodedUnicode
in interface javax.xml.stream.events.XMLEvent
writeAsEncodedUnicode
in class WEvent
javax.xml.stream.XMLStreamException
public void writeUsing(javax.xml.stream.XMLStreamWriter w) throws javax.xml.stream.XMLStreamException
writeUsing
in interface XMLEvent2
writeUsing
in class WEvent
javax.xml.stream.XMLStreamException