Class WEntityReference

java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.EntityReferenceEventImpl
com.ctc.wstx.evt.WEntityReference
All Implemented Interfaces:
EntityReference, XMLEvent, XMLStreamConstants, org.codehaus.stax2.evt.XMLEvent2

public class WEntityReference extends org.codehaus.stax2.ri.evt.EntityReferenceEventImpl implements 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 Details

  • Constructor Details

    • WEntityReference

      public WEntityReference(Location loc, EntityDeclaration decl)
    • WEntityReference

      public WEntityReference(Location loc, 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 Details

    • getName

      public String getName()
      Specified by:
      getName in interface EntityReference
      Overrides:
      getName in class org.codehaus.stax2.ri.evt.EntityReferenceEventImpl