com.sun.xml.fastinfoset.stax.events
Class EntityReferenceEvent
java.lang.Object
com.sun.xml.fastinfoset.stax.events.EventBase
com.sun.xml.fastinfoset.stax.events.EntityReferenceEvent
- All Implemented Interfaces:
- EntityReference, XMLEvent, XMLStreamConstants
public class EntityReferenceEvent
- extends EventBase
- implements EntityReference
| 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 |
| Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode |
| 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 |
EntityReferenceEvent
public EntityReferenceEvent()
EntityReferenceEvent
public EntityReferenceEvent(String entityName,
EntityDeclaration entityDeclaration)
getName
public String getName()
- The name of the entity
- Specified by:
getName in interface EntityReference
- Returns:
- the entity's name, may not be null
getDeclaration
public EntityDeclaration getDeclaration()
- Return the declaration of this entity.
- Specified by:
getDeclaration in interface EntityReference
setName
public void setName(String name)
setDeclaration
public void setDeclaration(EntityDeclaration declaration)
toString
public String toString()
- Overrides:
toString in class Object
init
protected void init()
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.