org.codehaus.stax2.ri.evt
Class DTDEventImpl
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.DTDEventImpl
- All Implemented Interfaces:
- javax.xml.stream.events.DTD, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, DTD2, XMLEvent2
public class DTDEventImpl
- extends BaseEventImpl
- implements DTD2
Vanilla implementation of a DTD event. Note that as is, it is not
really complete, since there is no way to access declared notations
and entities, because Stax 1.0 has no method for dispatching calls.
As such, it is expected that actual implementations would usually
extend this class, instead of using it as is.
| 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 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 |
| Methods inherited from interface javax.xml.stream.events.XMLEvent |
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement |
DTDEventImpl
public DTDEventImpl(javax.xml.stream.Location loc,
String rootName,
String sysId,
String pubId,
String intSubset,
Object dtd)
DTDEventImpl
public DTDEventImpl(javax.xml.stream.Location loc,
String rootName,
String intSubset)
- Constructor used when only partial information is available.
DTDEventImpl
public DTDEventImpl(javax.xml.stream.Location loc,
String fullText)
getDocumentTypeDeclaration
public String getDocumentTypeDeclaration()
- Specified by:
getDocumentTypeDeclaration in interface javax.xml.stream.events.DTD
getEntities
public List getEntities()
- Specified by:
getEntities in interface javax.xml.stream.events.DTD
getNotations
public List getNotations()
- Specified by:
getNotations in interface javax.xml.stream.events.DTD
getProcessedDTD
public Object getProcessedDTD()
- Specified by:
getProcessedDTD in interface javax.xml.stream.events.DTD
getEventType
public int getEventType()
- Specified by:
getEventType in interface javax.xml.stream.events.XMLEvent- Specified by:
getEventType in class BaseEventImpl
writeAsEncodedUnicode
public void writeAsEncodedUnicode(Writer w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent- Specified by:
writeAsEncodedUnicode in class BaseEventImpl
- Throws:
javax.xml.stream.XMLStreamException
writeUsing
public void writeUsing(XMLStreamWriter2 w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeUsing in interface XMLEvent2- Specified by:
writeUsing in class BaseEventImpl
- Throws:
javax.xml.stream.XMLStreamException
getRootName
public String getRootName()
- Specified by:
getRootName in interface DTD2
getSystemId
public String getSystemId()
- Specified by:
getSystemId in interface DTD2
getPublicId
public String getPublicId()
- Specified by:
getPublicId in interface DTD2
getInternalSubset
public String getInternalSubset()
- Specified by:
getInternalSubset in interface DTD2
equals
public boolean equals(Object o)
- Description copied from class:
BaseEventImpl
- Declared abstract to force redefinition by sub-classes
- Specified by:
equals in class BaseEventImpl
hashCode
public int hashCode()
- Description copied from class:
BaseEventImpl
- Declared abstract to force redefinition by sub-classes
- Specified by:
hashCode in class BaseEventImpl
doGetDocumentTypeDeclaration
protected String doGetDocumentTypeDeclaration()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.