Top Description Fields Constructors Methods
com.ctc.wstx.evt

public Class WEntityReference

extends EntityReferenceEventImpl
implements EntityReference
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.EntityReference, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
javax.xml.stream.Location, javax.xml.stream.events.EntityReference, .EntityDeclaration, org.codehaus.stax2.ri.evt.EntityReferenceEventImpl

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

Modifier and TypeField and Description
pack-priv final String
Inherited from org.codehaus.stax2.ri.evt.EntityReferenceEventImpl:
mDecl

Constructor Summary

AccessConstructor and Description
public
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 Summary

Modifier and TypeMethod and Description
public String
Inherited from org.codehaus.stax2.ri.evt.EntityReferenceEventImpl:
equalsgetDeclarationgetEventTypehashCodeisEntityReferencewriteAsEncodedUnicodewriteUsing

Field Detail

mNameback to summary
pack-priv final String mName

Constructor Detail

WEntityReferenceback to summary
public WEntityReference(Location loc, EntityDeclaration decl)
WEntityReferenceback to summary
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 Detail

getNameback to summary
public String getName()

Overrides org.codehaus.stax2.ri.evt.EntityReferenceEventImpl.getName.

Implements javax.xml.stream.events.EntityReference.getName.

Doc from javax.xml.stream.events.EntityReference.getName.

The name of the entity

Returns:String

the entity's name, may not be null

Annotations
@Override