public abstract class BaseXMLEventFactory extends XMLEventFactory
XMLEventFactory implementations. This class
makes it easier to implement by coalesing the various forms of each method into
a single creation method, such as
createAttribute(QName, String, Location, QName).| Modifier and Type | Field and Description |
|---|---|
protected Location |
location
The current location registered with the factory.
|
| Constructor and Description |
|---|
BaseXMLEventFactory() |
newFactory, newFactory, newInstance, newInstanceprotected Location location
public void setLocation(Location location)
setLocation in class XMLEventFactorypublic Attribute createAttribute(QName name, String value)
createAttribute in class XMLEventFactorypublic Attribute createAttribute(String prefix, String namespaceURI, String localName, String value)
createAttribute in class XMLEventFactorypublic Attribute createAttribute(String localName, String value)
createAttribute in class XMLEventFactorypublic abstract Attribute createAttribute(QName name, String value, Location location, QName schemaType)
public Characters createCData(String content)
createCData in class XMLEventFactorypublic abstract Characters createCData(String content, Location location, QName schemaType)
public Characters createCharacters(String content)
createCharacters in class XMLEventFactorypublic abstract Characters createCharacters(String content, Location location, QName schemaType)
public Comment createComment(String text)
createComment in class XMLEventFactorypublic DTD createDTD(String dtd)
createDTD in class XMLEventFactorypublic EndDocument createEndDocument()
createEndDocument in class XMLEventFactorypublic abstract EndDocument createEndDocument(Location location)
public EndElement createEndElement(QName name, Iterator namespaces)
createEndElement in class XMLEventFactorypublic EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces)
createEndElement in class XMLEventFactorypublic EndElement createEndElement(String prefix, String namespaceUri, String localName)
createEndElement in class XMLEventFactorypublic abstract EndElement createEndElement(QName name, Iterator namespaces, Location location, QName schemaType)
public EntityReference createEntityReference(String name, EntityDeclaration declaration)
createEntityReference in class XMLEventFactorypublic abstract EntityReference createEntityReference(String name, EntityDeclaration declaration, Location location)
public Characters createIgnorableSpace(String content)
createIgnorableSpace in class XMLEventFactorypublic abstract Characters createIgnorableSpace(String content, Location location)
public Namespace createNamespace(String prefix, String namespaceUri)
createNamespace in class XMLEventFactorypublic Namespace createNamespace(String namespaceUri)
createNamespace in class XMLEventFactorypublic abstract Namespace createNamespace(String prefix, String namespaceUri, Location location)
public ProcessingInstruction createProcessingInstruction(String target, String data)
createProcessingInstruction in class XMLEventFactorypublic abstract ProcessingInstruction createProcessingInstruction(String target, String data, Location location)
public Characters createSpace(String content)
createSpace in class XMLEventFactorypublic abstract Characters createSpace(String content, Location location)
public StartDocument createStartDocument()
createStartDocument in class XMLEventFactorypublic StartDocument createStartDocument(String encoding, String version, boolean standalone)
createStartDocument in class XMLEventFactorypublic StartDocument createStartDocument(String encoding, String version)
createStartDocument in class XMLEventFactorypublic StartDocument createStartDocument(String encoding)
createStartDocument in class XMLEventFactorypublic abstract StartDocument createStartDocument(String encoding, String version, Boolean standalone, Location location, QName schemaType)
public StartElement createStartElement(QName name, Iterator attributes, Iterator namespaces)
createStartElement in class XMLEventFactorypublic StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
createStartElement in class XMLEventFactorypublic StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)
createStartElement in class XMLEventFactorypublic StartElement createStartElement(String prefix, String namespaceUri, String localName)
createStartElement in class XMLEventFactorypublic abstract StartElement createStartElement(QName name, Iterator attributes, Iterator namespaces, NamespaceContext namespaceCtx, Location location, QName schemaType)
Copyright © 2017. All rights reserved.