com.sun.xml.stream.events
Class EntityDeclarationImpl
java.lang.Object
com.sun.xml.stream.events.DummyEvent
com.sun.xml.stream.events.EntityDeclarationImpl
- All Implemented Interfaces:
- javax.xml.stream.events.EntityDeclaration, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
public class EntityDeclarationImpl
- extends DummyEvent
- implements javax.xml.stream.events.EntityDeclaration
This class store all the information for a particular EntityDeclaration. EntityDeclaration interface
has various get* functiosn to retirve information about a particular EntityDeclaration.
- Author:
- Neeraj Bajaj, Sun Microsystems.
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 |
EntityDeclarationImpl()
Creates a new instance of EntityDeclarationImpl |
EntityDeclarationImpl(java.lang.String entityName,
java.lang.String replacementText)
|
EntityDeclarationImpl(java.lang.String entityName,
java.lang.String replacementText,
org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
|
Methods inherited from class com.sun.xml.stream.events.DummyEvent |
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, writeAsEncodedUnicode |
EntityDeclarationImpl
public EntityDeclarationImpl()
- Creates a new instance of EntityDeclarationImpl
EntityDeclarationImpl
public EntityDeclarationImpl(java.lang.String entityName,
java.lang.String replacementText)
EntityDeclarationImpl
public EntityDeclarationImpl(java.lang.String entityName,
java.lang.String replacementText,
org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
setEntityName
public void setEntityName(java.lang.String entityName)
getEntityName
public java.lang.String getEntityName()
setEntityReplacementText
public void setEntityReplacementText(java.lang.String replacementText)
setXMLResourceIdentifier
public void setXMLResourceIdentifier(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
getXMLResourceIdentifier
public org.apache.xerces.xni.XMLResourceIdentifier getXMLResourceIdentifier()
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId
in interface javax.xml.stream.events.EntityDeclaration
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicId
in interface javax.xml.stream.events.EntityDeclaration
getBaseURI
public java.lang.String getBaseURI()
- Specified by:
getBaseURI
in interface javax.xml.stream.events.EntityDeclaration
getName
public java.lang.String getName()
- Specified by:
getName
in interface javax.xml.stream.events.EntityDeclaration
getNotationName
public java.lang.String getNotationName()
- Specified by:
getNotationName
in interface javax.xml.stream.events.EntityDeclaration
setNotationName
public void setNotationName(java.lang.String notationName)
getReplacementText
public java.lang.String getReplacementText()
- Specified by:
getReplacementText
in interface javax.xml.stream.events.EntityDeclaration
init
protected void init()
writeAsEncodedUnicodeEx
protected void writeAsEncodedUnicodeEx(java.io.Writer writer)
throws java.io.IOException
- Description copied from class:
DummyEvent
- Helper method in order to expose IOException.
- Specified by:
writeAsEncodedUnicodeEx
in class DummyEvent
- Parameters:
writer
- The writer that will output the data
- Throws:
java.io.IOException
- if there is an IO error
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.