Package javanet.staxutils.events
Class EntityDeclarationEvent
- java.lang.Object
-
- javanet.staxutils.events.AbstractXMLEvent
-
- javanet.staxutils.events.EntityDeclarationEvent
-
- All Implemented Interfaces:
Serializable,Cloneable,ExtendedXMLEvent,EntityDeclaration,XMLEvent,XMLStreamConstants
public class EntityDeclarationEvent extends AbstractXMLEvent implements EntityDeclaration
EntityDeclarationevent implementation.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringbaseURIThe entity base URI, ornullif this isn't an external entityprotected StringnameThe entity name.protected StringnotationNameThe optional notation name.protected StringpublicIdThe public id, ornullif this isn't an external entityprotected StringreplacementTextThe replacement text, ornullif this isn't an internal entity.protected StringsystemIdThe system id, ornullif this isn't an external entity.-
Fields inherited from class javanet.staxutils.events.AbstractXMLEvent
location, schemaType
-
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
Constructors Constructor Description EntityDeclarationEvent(String name, String publicId, String systemId, String baseURI, String notationName, Location location)EntityDeclarationEvent(String name, String replacementText, String notationName, Location location)EntityDeclarationEvent(String name, String replacementText, Location location)EntityDeclarationEvent(EntityDeclaration that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseURI()intgetEventType()StringgetName()StringgetNotationName()StringgetPublicId()StringgetReplacementText()StringgetSystemId()-
Methods inherited from class javanet.staxutils.events.AbstractXMLEvent
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEvent
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
-
-
-
Field Detail
-
name
protected String name
The entity name.
-
replacementText
protected String replacementText
The replacement text, ornullif this isn't an internal entity.
-
baseURI
protected String baseURI
The entity base URI, ornullif this isn't an external entity
-
publicId
protected String publicId
The public id, ornullif this isn't an external entity
-
systemId
protected String systemId
The system id, ornullif this isn't an external entity.
-
notationName
protected String notationName
The optional notation name.
-
-
Constructor Detail
-
EntityDeclarationEvent
public EntityDeclarationEvent(String name, String replacementText, Location location)
-
EntityDeclarationEvent
public EntityDeclarationEvent(String name, String replacementText, String notationName, Location location)
-
EntityDeclarationEvent
public EntityDeclarationEvent(String name, String publicId, String systemId, String baseURI, String notationName, Location location)
-
EntityDeclarationEvent
public EntityDeclarationEvent(EntityDeclaration that)
-
-
Method Detail
-
getEventType
public int getEventType()
- Specified by:
getEventTypein interfaceXMLEvent
-
getBaseURI
public String getBaseURI()
- Specified by:
getBaseURIin interfaceEntityDeclaration
-
getName
public String getName()
- Specified by:
getNamein interfaceEntityDeclaration
-
getNotationName
public String getNotationName()
- Specified by:
getNotationNamein interfaceEntityDeclaration
-
getPublicId
public String getPublicId()
- Specified by:
getPublicIdin interfaceEntityDeclaration
-
getReplacementText
public String getReplacementText()
- Specified by:
getReplacementTextin interfaceEntityDeclaration
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceEntityDeclaration
-
-