com.ctc.wstx.evt
Class WEntityReference

java.lang.Object
  extended byorg.codehaus.stax2.ri.evt.BaseEventImpl
      extended byorg.codehaus.stax2.ri.evt.EntityReferenceEventImpl
          extended bycom.ctc.wstx.evt.WEntityReference
All Implemented Interfaces:
javax.xml.stream.events.EntityReference, javax.xml.stream.events.XMLEvent, XMLEvent2, javax.xml.stream.XMLStreamConstants

public class WEntityReference
extends EntityReferenceEventImpl
implements javax.xml.stream.events.EntityReference

We need a slightly specialized version to support concept of undeclared entities, which can be used in (non-default, non-standard) mode where undeclared entities are allowed to be handled.


Field Summary
 
Fields inherited from class org.codehaus.stax2.ri.evt.EntityReferenceEventImpl
mDecl
 
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
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).
 
Method Summary
 java.lang.String getName()
           
 
Methods inherited from class org.codehaus.stax2.ri.evt.EntityReferenceEventImpl
getDeclaration, getEventType, isEntityReference, writeAsEncodedUnicode, writeUsing
 
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, throwFromIOE, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.events.EntityReference
getDeclaration
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Constructor Detail

WEntityReference

public WEntityReference(javax.xml.stream.Location loc,
                        javax.xml.stream.events.EntityDeclaration decl)

WEntityReference

public 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).

Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface javax.xml.stream.events.EntityReference
Overrides:
getName in class EntityReferenceEventImpl