Package org.codehaus.stax2.ri.evt
Class NotationDeclarationEventImpl
- java.lang.Object
-
- org.codehaus.stax2.ri.evt.BaseEventImpl
-
- org.codehaus.stax2.ri.evt.NotationDeclarationEventImpl
-
- All Implemented Interfaces:
javax.xml.stream.events.NotationDeclaration,javax.xml.stream.events.XMLEvent,javax.xml.stream.XMLStreamConstants,NotationDeclaration2,XMLEvent2
public class NotationDeclarationEventImpl extends BaseEventImpl implements NotationDeclaration2
-
-
Field Summary
-
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
-
-
Constructor Summary
Constructors Constructor Description NotationDeclarationEventImpl(javax.xml.stream.Location loc, java.lang.String name, java.lang.String pubId, java.lang.String sysId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Declared abstract to force redefinition by sub-classesjava.lang.StringgetBaseURI()Empty base implementation: sub-classes should implementintgetEventType()java.lang.StringgetName()java.lang.StringgetPublicId()java.lang.StringgetSystemId()inthashCode()Declared abstract to force redefinition by sub-classesvoidwriteAsEncodedUnicode(java.io.Writer w)voidwriteUsing(XMLStreamWriter2 w)This method does not make much sense for this event type -- the reason being that the notation declarations can only be written as part of a DTD (internal or external subset), not separately.-
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejavax.xml.stream.events.NotationDeclaration
-
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicIdin interfacejavax.xml.stream.events.NotationDeclaration
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfacejavax.xml.stream.events.NotationDeclaration
-
getBaseURI
public java.lang.String getBaseURI()
Empty base implementation: sub-classes should implement- Specified by:
getBaseURIin interfaceNotationDeclaration2
-
getEventType
public int getEventType()
- Specified by:
getEventTypein interfacejavax.xml.stream.events.XMLEvent- Specified by:
getEventTypein classBaseEventImpl
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer w) throws javax.xml.stream.XMLStreamException- Specified by:
writeAsEncodedUnicodein interfacejavax.xml.stream.events.XMLEvent- Specified by:
writeAsEncodedUnicodein classBaseEventImpl- Throws:
javax.xml.stream.XMLStreamException
-
writeUsing
public void writeUsing(XMLStreamWriter2 w) throws javax.xml.stream.XMLStreamException
This method does not make much sense for this event type -- the reason being that the notation declarations can only be written as part of a DTD (internal or external subset), not separately. Can basically choose to either skip silently (output nothing), or throw an exception.- Specified by:
writeUsingin interfaceXMLEvent2- Specified by:
writeUsingin classBaseEventImpl- Throws:
javax.xml.stream.XMLStreamException
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
equalsin classBaseEventImpl
-
hashCode
public int hashCode()
Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
hashCodein classBaseEventImpl
-
-