| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public 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)Implements abstract javax. Create a new Attribute |
| public 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)Implements abstract javax. Create a new Attribute |
| public Attribute | createAttribute(QName name, String value)
Implements abstract javax. Create a new Attribute |
| public Characters | Returns: a Characters eventthe string to create content)Implements abstract javax. Create a Characters event with the CData flag set to true |
| public Characters | Returns: a Characters eventthe string to create content)Implements abstract javax. Create a Characters event, this method does not check if the content is all whitespace. |
| public Comment | createComment(String
The text of the comment
a Comment event text)Implements abstract javax. Create a comment |
| public DTD | Returns: a DTD eventthe text of the document type definition dtd)Implements abstract javax. Create a document type definition event This string contains the entire document type declaration that matches the doctypedecl in the XML 1.0 specification |
| public EndDocument | createEndDocument()
Implements abstract javax. Creates a new instance of an EndDocument event |
| public 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)Implements abstract javax. Create a new EndElement |
| public 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)Implements abstract javax. Create a new EndElement |
| public 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)Implements abstract javax. Create a new EndElement |
| public EntityReference | Returns: an EntityReference eventThe name of the reference name, EntityDeclaration the declaration for the event entityDeclaration)Implements abstract javax. Creates a new instance of a EntityReference event |
| public Characters | Returns: a Characters eventthe space to create content)Implements abstract javax. Create an ignorable space |
| public Namespace | Returns: the Namespace with the specified valuethe default namespace uri namespaceURI)Implements abstract javax. Create a new default Namespace |
| public 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)Implements abstract javax. Create a new Namespace |
| public ProcessingInstruction | Returns: a ProcessingInstruction eventThe target of the processing instruction target, String The text of the processing instruction data)Implements abstract javax. Create a processing instruction |
| public Characters | Returns: a Characters eventthe content of the space to create content)Implements abstract javax. Create a Characters event with the isSpace flag set to true |
| public StartDocument | Returns: a StartDocument eventImplements abstract javax. Creates a new instance of a StartDocument event |
| public StartDocument | Returns: a StartDocument eventthe encoding style encoding)Implements abstract javax. Creates a new instance of a StartDocument event |
| public StartDocument | Returns: a StartDocument eventthe encoding style encoding, String the XML version version)Implements abstract javax. Creates a new instance of a StartDocument event |
| public 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)Implements abstract javax. Creates a new instance of a StartDocument event |
| public 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)Implements abstract javax. Create a new StartElement. |
| public StartElement | createStartElement(String prefix, String namespaceUri, String localName)
Implements abstract javax. Create a new StartElement. |
| public StartElement | createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces)
Implements abstract javax. Create a new StartElement. |
| public StartElement | createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces, NamespaceContext context)
Implements abstract javax. Create a new StartElement. |
| public void | setLocation(Location
the location to set on each event created location)Implements abstract javax. This method allows setting of the Location on each event that is created by this factory. |
| location | back to summary |
|---|---|
| pack-priv Location location | |
| StAXEventFactory | back to summary |
|---|---|
| public StAXEventFactory() Creates a new instance of StAXEventFactory | |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(String prefix, String namespaceURI, String localName, String value) Implements abstract javax. Create a new Attribute
| |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(String localName, String value) Implements abstract javax. Create a new Attribute | |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(QName name, String value) Implements abstract javax. Doc from javax. Create a new Attribute
| |
| createCData | back to summary |
|---|---|
| public Characters createCData(String content) Implements abstract javax. Create a Characters event with the CData flag set to true
| |
| createCharacters | back to summary |
|---|---|
| public Characters createCharacters(String content) Implements abstract javax. 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 Comment createComment(String text) Implements abstract javax. Create a comment | |
| createDTD | back to summary |
|---|---|
| public DTD createDTD(String dtd) Implements abstract javax. 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 EndDocument createEndDocument() Implements abstract javax. Doc from javax. Creates a new instance of an EndDocument event
| |
| createEndElement | back to summary |
|---|---|
| public EndElement createEndElement(QName name, Iterator<? extends Namespace> namespaces) Implements abstract javax. Create a new EndElement
| |
| createEndElement | back to summary |
|---|---|
| public EndElement createEndElement(String prefix, String namespaceUri, String localName) Implements abstract javax. Create a new EndElement
| |
| createEndElement | back to summary |
|---|---|
| public EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator<? extends Namespace> namespaces) Implements abstract javax. Create a new EndElement
| |
| createEntityReference | back to summary |
|---|---|
| public EntityReference createEntityReference(String name, EntityDeclaration entityDeclaration) Implements abstract javax. Creates a new instance of a EntityReference event
| |
| createIgnorableSpace | back to summary |
|---|---|
| public Characters createIgnorableSpace(String content) Implements abstract javax. Create an ignorable space
| |
| createNamespace | back to summary |
|---|---|
| public Namespace createNamespace(String namespaceURI) Implements abstract javax. Create a new default Namespace | |
| createNamespace | back to summary |
|---|---|
| public Namespace createNamespace(String prefix, String namespaceURI) Implements abstract javax. Create a new Namespace | |
| createProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction createProcessingInstruction(String target, String data) Implements abstract javax. Create a processing instruction
| |
| createSpace | back to summary |
|---|---|
| public Characters createSpace(String content) Implements abstract javax. Create a Characters event with the isSpace flag set to true
| |
| createStartDocument | back to summary |
|---|---|
| public StartDocument createStartDocument() Implements abstract javax. Creates a new instance of a StartDocument event
| |
| createStartDocument | back to summary |
|---|---|
| public StartDocument createStartDocument(String encoding) Implements abstract javax. Creates a new instance of a StartDocument event
| |
| createStartDocument | back to summary |
|---|---|
| public StartDocument createStartDocument(String encoding, String version) Implements abstract javax. Creates a new instance of a StartDocument event
| |
| createStartDocument | back to summary |
|---|---|
| public StartDocument createStartDocument(String encoding, String version, boolean standalone) Implements abstract javax. Creates a new instance of a StartDocument event
| |
| createStartElement | back to summary |
|---|---|
| public StartElement createStartElement(QName name, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces) Implements abstract javax. Create a new StartElement.
| |
| createStartElement | back to summary |
|---|---|
| public StartElement createStartElement(String prefix, String namespaceUri, String localName) Implements abstract javax. Doc from javax. 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 StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces) Implements abstract javax. Doc from javax. 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 StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator<? extends Attribute> attributes, Iterator<? extends Namespace> namespaces, NamespaceContext context) Implements abstract javax. Doc from javax. 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.
| |
| setLocation | back to summary |
|---|---|
| public void setLocation(Location location) Implements abstract javax. 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. | |