org.apache.xerces.stax.events
Class EntityReferenceImpl

java.lang.Object
  extended by org.apache.xerces.stax.events.XMLEventImpl
      extended by org.apache.xerces.stax.events.EntityReferenceImpl
All Implemented Interfaces:
EntityReference, XMLEvent, XMLStreamConstants

public final class EntityReferenceImpl
extends XMLEventImpl
implements EntityReference

Version:
$Id: EntityReferenceImpl.java 730471 2008-12-31 20:45:32Z mrglavas $
Author:
Lucian Holland

Field Summary
 
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
EntityReferenceImpl(EntityDeclaration decl, Location location)
          Constructor.
EntityReferenceImpl(String name, EntityDeclaration decl, Location location)
          Constructor.
 
Method Summary
 EntityDeclaration getDeclaration()
           
 String getName()
           
 void writeAsEncodedUnicode(Writer writer)
           
 
Methods inherited from class org.apache.xerces.stax.events.XMLEventImpl
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, 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.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
 

Constructor Detail

EntityReferenceImpl

public EntityReferenceImpl(EntityDeclaration decl,
                           Location location)
Constructor.

Parameters:
decl -
location -

EntityReferenceImpl

public EntityReferenceImpl(String name,
                           EntityDeclaration decl,
                           Location location)
Constructor.

Parameters:
name -
decl -
location -
Method Detail

getDeclaration

public EntityDeclaration getDeclaration()
Specified by:
getDeclaration in interface EntityReference
See Also:
EntityReference.getDeclaration()

getName

public String getName()
Specified by:
getName in interface EntityReference
See Also:
EntityReference.getName()

writeAsEncodedUnicode

public void writeAsEncodedUnicode(Writer writer)
                           throws XMLStreamException
Specified by:
writeAsEncodedUnicode in interface XMLEvent
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.