| 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, toStringpublic 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.EntityReferencepublic java.lang.String getName()
getName in interface javax.xml.stream.events.EntityReferencepublic int getEventType()
getEventType in interface javax.xml.stream.events.XMLEventgetEventType in class WEventpublic boolean isEntityReference()
isEntityReference in interface javax.xml.stream.events.XMLEventisEntityReference in class WEventpublic void writeAsEncodedUnicode(java.io.Writer w)
throws javax.xml.stream.XMLStreamException
writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEventwriteAsEncodedUnicode in class WEventjavax.xml.stream.XMLStreamExceptionpublic void writeUsing(javax.xml.stream.XMLStreamWriter w)
throws javax.xml.stream.XMLStreamException
writeUsing in interface XMLEvent2writeUsing in class WEventjavax.xml.stream.XMLStreamException