javax.xml.stream.events.StartElement , javax.xml.stream.events.EndElement , javax.xml.stream.events.ProcessingInstruction , javax.xml.stream.events.Comment , javax.xml.stream.events.Characters , javax.xml.stream.events.StartDocument , javax.xml.stream.events.EndDocument , javax.xml.stream.events.DTD
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Attribute | Returns: the Attribute with specified valuesthe prefix of this attribute, may not be null prefix, String the attribute value is set to this value, may not be null namespaceURI, String the local name of the XML name of the attribute, localName cannot be null localName, String the attribute value to set, may not be null value)Create a new Attribute |
| public abstract Attribute | Returns: the Attribute with specified valuesthe local name of the XML name of the attribute, localName cannot be null localName, String the attribute value to set, may not be null value)Create a new Attribute |
| public abstract Attribute | Returns: the Attribute with specified valuesthe qualified name of the attribute, may not be null name, String the attribute value to set, may not be null value)Create a new Attribute |
| public abstract Characters | Returns: a Characters eventthe string to create content)Create a Characters event with the CData flag set to true |
| public abstract Characters | Returns: a Characters eventthe string to create content)Create a Characters event, this method does not check if the content is all whitespace. |
| public abstract Comment | |
| public abstract DTD | |
| public abstract EndDocument | |
| public abstract EndElement | Returns: an instance of the requested EndElementthe qualified name of the EndElement name, Iterator<? extends Namespace> an optional unordered set of objects that
implement Namespace that have gone out of scope, may be null namespaces)Create a new EndElement |
| public abstract EndElement | Returns: an instance of the requested EndElementthe prefix of the QName of the new StartElement prefix, String the uri of the QName of the new StartElement namespaceUri, String the local name of the QName of the new StartElement localName)Create a new EndElement |
| public abstract EndElement | Returns: an instance of the requested EndElementthe prefix of the QName of the new StartElement prefix, String the uri of the QName of the new StartElement namespaceUri, String the local name of the QName of the new StartElement localName, Iterator<? extends Namespace> an unordered set of objects that implement
Namespace that have gone out of scope, may be null namespaces)Create a new EndElement |
| public abstract EntityReference | Returns: an EntityReference eventThe name of the reference name, EntityDeclaration the declaration for the event declaration)Creates a new instance of a EntityReference event |
| public abstract Characters | Returns: a Characters eventthe space to create content)Create an ignorable space |
| public abstract Namespace | Returns: the Namespace with the specified valuethe default namespace uri namespaceURI)Create a new default Namespace |
| public abstract Namespace | Returns: the Namespace with the specified valuesthe prefix of this namespace, may not be null prefix, String the attribute value is set to this value, may not be null namespaceUri)Create a new Namespace |
| public abstract ProcessingInstruction | Returns: a ProcessingInstruction eventThe target of the processing instruction target, String The text of the processing instruction data)Create a processing instruction |
| public abstract Characters | Returns: a Characters eventthe content of the space to create content)Create a Characters event with the isSpace flag set to true |
| public abstract StartDocument | |
| public abstract StartDocument | Returns: a StartDocument eventthe encoding style encoding, String the XML version version, boolean the status of standalone may be set to "true" or "false" standalone)Creates a new instance of a StartDocument event |
| public abstract StartDocument | Returns: a StartDocument eventthe encoding style encoding, String the XML version version)Creates a new instance of a StartDocument event |
| public abstract StartDocument | Returns: a StartDocument eventthe encoding style encoding)Creates a new instance of a StartDocument event |
| public abstract StartElement | Returns: an instance of the requested StartElementthe qualified name of the attribute, may not be null name, Iterator<? extends Attribute> an optional unordered set of objects that
implement Attribute to add to the new StartElement, may be null attributes, Iterator<? extends Namespace> an optional unordered set of objects that
implement Namespace to add to the new StartElement, may be null namespaces)Create a new StartElement. |
| public abstract StartElement | Returns: an instance of the requested StartElementthe prefix of the QName of the new StartElement prefix, String the uri of the QName of the new StartElement namespaceUri, String the local name of the QName of the new StartElement localName)Create a new StartElement. |
| public abstract StartElement | Returns: an instance of the requested StartElementthe prefix of the QName of the new StartElement prefix, String the uri of the QName of the new StartElement namespaceUri, String the local name of the QName of the new StartElement localName, Iterator<? extends Attribute> an unordered set of objects that implement
Attribute to add to the new StartElement attributes, Iterator<? extends Namespace> an unordered set of objects that implement
Namespace to add to the new StartElement namespaces)Create a new StartElement. |
| public abstract StartElement | Returns: an instance of the requested StartElementthe prefix of the QName of the new StartElement prefix, String the uri of the QName of the new StartElement namespaceUri, String the local name of the QName of the new StartElement localName, Iterator<? extends Attribute> an unordered set of objects that implement
Attribute to add to the new StartElement, may be null attributes, Iterator<? extends Namespace> an unordered set of objects that implement
Namespace to add to the new StartElement, may be null namespaces, NamespaceContext the namespace context of this element context)Create a new StartElement. |
| public static XMLEventFactory | Returns: A new instance of theXMLEventFactory builtin
system-default implementation.Creates a new instance of the |
| public static XMLEventFactory | |
| public static XMLEventFactory | Returns: the factory implementationName of the factory to find, same as
a property name factoryId, ClassLoader classLoader to use classLoader)Create a new instance of the factory. |
| public static XMLEventFactory | Returns: an instance of theXMLEventFactoryCreates a new instance of the factory in exactly the same manner as the
|
| public static XMLEventFactory | Returns: the factory implementationName of the factory to find, same as
a property name factoryId, ClassLoader classLoader to use classLoader)
Deprecated
since 1.7. This method has been deprecated to maintain API consistency.
Create a new instance of the factory |
| public abstract void | setLocation(Location
the location to set on each event created location)This method allows setting of the Location on each event that is created by this factory. |
| DEFAULIMPL | back to summary |
|---|---|
| pack-priv static final String DEFAULIMPL | |
| JAXPFACTORYID | back to summary |
|---|---|
| pack-priv static final String JAXPFACTORYID | |
| XMLEventFactory | back to summary |
|---|---|
| protected XMLEventFactory() Protected constructor to prevent instantiation.
Use | |
| createAttribute | back to summary |
|---|---|
| public abstract Attribute createAttribute(String prefix, String namespaceURI, String localName, String value) Create a new Attribute
| |
| createAttribute | back to summary |
|---|---|
| public abstract Attribute createAttribute(String localName, String value) Create a new Attribute | |
| createAttribute | back to summary |
|---|---|
| public abstract Attribute createAttribute(QName name, String value) Create a new Attribute | |
| createCData | back to summary |
|---|---|
| public abstract Characters createCData(String content) Create a Characters event with the CData flag set to true
| |
| createCharacters | back to summary |
|---|---|
| public abstract Characters createCharacters(String content) Create a Characters event, this method does not check if the content is all whitespace. To create a space event use #createSpace(String)
| |
| createComment | back to summary |
|---|---|
| public abstract Comment createComment(String text) Create a comment. | |
| createDTD | back to summary |
|---|---|
| public abstract DTD createDTD(String dtd) Create a document type definition event This string contains the entire document type declaration that matches the doctypedecl in the XML 1.0 specification | |
| createEndDocument | back to summary |
|---|---|
| public abstract EndDocument createEndDocument() Creates a new instance of an EndDocument event
| |
| createEndElement | back to summary |
|---|---|
| public abstract EndElement createEndElement(QName name, Iterator<? extends Namespace> namespaces) Create a new EndElement
| |
| createEndElement | back to summary |
|---|---|
| public abstract EndElement createEndElement(String prefix, String namespaceUri, String localName) Create a new EndElement
| |
| createEndElement | back to summary |
|---|---|
| public abstract EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator<? extends Namespace> namespaces) Create a new EndElement
| |
| createEntityReference | back to summary |
|---|---|
| public abstract EntityReference createEntityReference(String name, EntityDeclaration declaration) Creates a new instance of a EntityReference event
| |
| createIgnorableSpace | back to summary |
|---|---|
| public abstract Characters createIgnorableSpace(String content) Create an ignorable space
| |
| createNamespace | back to summary |
|---|---|
| public abstract Namespace createNamespace(String namespaceURI) Create a new default Namespace | |
| createNamespace | back to summary |
|---|---|
| public abstract Namespace createNamespace(String prefix, String namespaceUri) Create a new Namespace | |
| createProcessingInstruction | back to summary |
|---|---|
| public abstract ProcessingInstruction createProcessingInstruction(String target, String data) Create a processing instruction
| |
| createSpace | back to summary |
|---|---|
| public abstract Characters createSpace(String content) Create a Characters event with the isSpace flag set to true
| |
| createStartDocument | back to summary |
|---|---|
| public abstract StartDocument createStartDocument() Creates a new instance of a StartDocument event
| |
| createStartDocument | back to summary |
|---|---|
| public abstract StartDocument createStartDocument(String encoding, String version, boolean standalone) Creates a new instance of a StartDocument event
| |
| createStartDocument | back to summary |
|---|---|
| public abstract StartDocument createStartDocument(String encoding, String version) Creates a new instance of a StartDocument event
| |
| createStartDocument | back to summary |
|---|---|
| public abstract StartDocument createStartDocument(String encoding) Creates a new instance of a StartDocument event
| |
| createStartElement | back to summary |
|---|---|
| public abstract StartElement createStartElement(QName name, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces) Create a new StartElement. Namespaces can be added to this StartElement by passing in an Iterator that walks over a set of Namespace interfaces. Attributes can be added to this StartElement by passing an iterator that walks over a set of Attribute interfaces.
| |
| createStartElement | back to summary |
|---|---|
| public abstract StartElement createStartElement(String prefix, String namespaceUri, String localName) Create a new StartElement. This defaults the NamespaceContext to an empty NamespaceContext. Querying this event for its namespaces or attributes will result in an empty iterator being returned.
| |
| createStartElement | back to summary |
|---|---|
| public abstract StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces) Create a new StartElement. Namespaces can be added to this StartElement by passing in an Iterator that walks over a set of Namespace interfaces. Attributes can be added to this StartElement by passing an iterator that walks over a set of Attribute interfaces.
| |
| createStartElement | back to summary |
|---|---|
| public abstract StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces, NamespaceContext context) Create a new StartElement. Namespaces can be added to this StartElement by passing in an Iterator that walks over a set of Namespace interfaces. Attributes can be added to this StartElement by passing an iterator that walks over a set of Attribute interfaces.
| |
| newDefaultFactory | back to summary |
|---|---|
| public static XMLEventFactory newDefaultFactory() Creates a new instance of the
| |
| newFactory | back to summary |
|---|---|
| public static XMLEventFactory newFactory() throws FactoryConfigurationError Creates a new instance of the factory. This method uses the
JAXP Lookup Mechanism
to determine the
Once an application has obtained a reference to a
| |
| newFactory | back to summary |
|---|---|
| public static XMLEventFactory newFactory(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError Create a new instance of the factory. If the classLoader argument is null, then the ContextClassLoader is used. This method uses the following ordered lookup procedure to determine the XMLEventFactory implementation class to load:
Note that this is a new method that replaces the deprecated
API Note The parameter factoryId defined here is inconsistent with that of other JAXP factories where the first parameter is fully qualified factory class name that provides implementation of the factory.
| |
| newInstance | back to summary |
|---|---|
| public static XMLEventFactory newInstance() throws FactoryConfigurationError Creates a new instance of the factory in exactly the same manner as the
| |
| newInstance | back to summary |
|---|---|
| public static XMLEventFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError
Deprecated since 1.7. This method has been deprecated to maintain API consistency.
All newInstance methods have been replaced with corresponding
newFactory methods. The replacement Create a new instance of the factory
| |
| setLocation | back to summary |
|---|---|
| public abstract void setLocation(Location location) This method allows setting of the Location on each event that is created by this factory. The values are copied by value into the events created by this factory. To reset the location information set the location to null.
| |