Top Description Fields Constructors Methods
com.ctc.wstx.stax

public final Class WstxEventFactory

extends Stax2EventFactoryImpl
Class Inheritance
Annotations
@ServiceProvider:XMLEventFactory
Imports
java.util.Iterator, javax.xml.namespace.NamespaceContext, .QName, javax.xml.stream.*, javax.xml.stream.events.*, aQute.bnd.annotation.spi.ServiceProvider, org.codehaus.stax2.ri.Stax2EventFactoryImpl, com.ctc.wstx.compat.QNameCreator, com.ctc.wstx.evt.*

Implementation of XMLEventFactory to be used with Woodstox. Contains minimal additions on top of Stax2 RI.

Field Summary

Inherited from org.codehaus.stax2.ri.Stax2EventFactoryImpl:
mLocation

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DTD
createDTD(String
the text of the document type definition
dtd
)

Overrides org.codehaus.stax2.ri.Stax2EventFactoryImpl.createDTD.

Note

constructing DTD events this way means that there will be no internal presentation of actual DTD; no parsing is implied by construction.

protected QName
protected QName
protected StartElement
createStartElement(QName name, Iterator<?> attr, Iterator<?> ns, NamespaceContext ctxt)

Overrides org.codehaus.stax2.ri.Stax2EventFactoryImpl.createStartElement.

Must override this method to use a more efficient StartElement implementation

Inherited from org.codehaus.stax2.ri.Stax2EventFactoryImpl:
createAttributecreateAttributecreateAttributecreateCDatacreateCharacterscreateCommentcreateDTDcreateDTDcreateEndDocumentcreateEndElementcreateEndElementcreateEndElementcreateEntityReferencecreateIgnorableSpacecreateNamespacecreateNamespacecreateProcessingInstructioncreateSpacecreateStartDocumentcreateStartDocumentcreateStartDocumentcreateStartDocumentcreateStartElementcreateStartElementcreateStartElementcreateStartElementsetLocation

Constructor Detail

WstxEventFactoryback to summary
public WstxEventFactory()

Method Detail

createDTDback to summary
public DTD createDTD(String dtd)

Overrides org.codehaus.stax2.ri.Stax2EventFactoryImpl.createDTD.

Note

constructing DTD events this way means that there will be no internal presentation of actual DTD; no parsing is implied by construction.

Parameters
dtd:String

Doc from javax.xml.stream.XMLEventFactory.createDTD.

the text of the document type definition

Returns:DTD

Doc from javax.xml.stream.XMLEventFactory.createDTD.

a DTD event

Annotations
@Override
createQNameback to summary
protected QName createQName(String nsURI, String localName)

Implements abstract org.codehaus.stax2.ri.Stax2EventFactoryImpl.createQName.

Annotations
@Override
createQNameback to summary
protected QName createQName(String nsURI, String localName, String prefix)

Implements abstract org.codehaus.stax2.ri.Stax2EventFactoryImpl.createQName.

Annotations
@Override
createStartElementback to summary
protected StartElement createStartElement(QName name, Iterator<?> attr, Iterator<?> ns, NamespaceContext ctxt)

Overrides org.codehaus.stax2.ri.Stax2EventFactoryImpl.createStartElement.

Must override this method to use a more efficient StartElement implementation

Annotations
@SuppressWarnings:unchecked
@Override