Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public Attribute | createAttribute(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 | createAttribute(QName
the qualified name of the attribute, may not be null name, String the attribute value to set, may not be null value)Implements abstract javax. Create a new Attribute |
public Attribute | createAttribute(String
the 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 Characters | createCData(String
the string to create content)Implements abstract javax. Create a Characters event with the CData flag set to true |
public Characters | createCharacters(String
the 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 text)Implements abstract javax. Create a comment. |
public DTD | createDTD(String
the 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 | createEndElement(QName
the 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 | createEndElement(String
the 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 | createEndElement(String
the 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 | createEntityReference(String
The 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 | createIgnorableSpace(String
the space to create content)Implements abstract javax. Create an ignorable space |
public Namespace | createNamespace(String
the default namespace uri namespaceURI)Implements abstract javax. Create a new default Namespace |
public Namespace | createNamespace(String
the 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 | createProcessingInstruction(String
The target of the processing instruction target, String The text of the processing instruction data)Implements abstract javax. Create a processing instruction |
public Characters | createSpace(String
the content of the space to create content)Implements abstract javax. Create a Characters event with the isSpace flag set to true |
public StartDocument | createStartDocument()
Implements abstract javax. Creates a new instance of a StartDocument event |
public StartDocument | createStartDocument(String
the encoding style encoding)Implements abstract javax. Creates a new instance of a StartDocument event |
public StartDocument | createStartDocument(String
the encoding style encoding, String the XML version version)Implements abstract javax. Creates a new instance of a StartDocument event |
public StartDocument | createStartDocument(String
the 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 | createStartElement(QName
the 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
the 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 StartElement. |
public StartElement | createStartElement(String
the 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)Implements abstract javax. Create a new StartElement. |
public StartElement | createStartElement(String
the 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)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 |
XMLEventFactoryImpl | back to summary |
---|---|
public XMLEventFactoryImpl() Creates a new instance of XMLEventFactory |
createAttribute | back to summary |
---|---|
public Attribute createAttribute(String localName, String value) Implements abstract javax. Doc from 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 |
createAttribute | back to summary |
---|---|
public Attribute createAttribute(String prefix, String namespaceURI, String localName, String value) Implements abstract javax. Doc from javax. Create a new Attribute
|
createCData | back to summary |
---|---|
public Characters createCData(String content) Implements abstract javax. Doc from javax. Create a Characters event with the CData flag set to true
|
createCharacters | back to summary |
---|---|
public Characters createCharacters(String content) Implements abstract javax. Doc from 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. Doc from javax. Create a comment. |
createDTD | back to summary |
---|---|
public DTD createDTD(String dtd) Implements abstract javax. Doc from 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. Doc from javax. Create a new EndElement
|
createEndElement | back to summary |
---|---|
public EndElement createEndElement(String prefix, String namespaceUri, String localName) Implements abstract javax. Doc from 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. Doc from javax. Create a new EndElement
|
createEntityReference | back to summary |
---|---|
public EntityReference createEntityReference(String name, EntityDeclaration entityDeclaration) Implements abstract javax. Doc from javax. Creates a new instance of a EntityReference event
|
createIgnorableSpace | back to summary |
---|---|
public Characters createIgnorableSpace(String content) Implements abstract javax. Doc from javax. Create an ignorable space
|
createNamespace | back to summary |
---|---|
public Namespace createNamespace(String namespaceURI) Implements abstract javax. Doc from javax. Create a new default Namespace |
createNamespace | back to summary |
---|---|
public Namespace createNamespace(String prefix, String namespaceURI) Implements abstract javax. Doc from javax. Create a new Namespace |
createProcessingInstruction | back to summary |
---|---|
public ProcessingInstruction createProcessingInstruction(String target, String data) Implements abstract javax. Doc from javax. Create a processing instruction
|
createSpace | back to summary |
---|---|
public Characters createSpace(String content) Implements abstract javax. Doc from javax. Create a Characters event with the isSpace flag set to true
|
createStartDocument | back to summary |
---|---|
public StartDocument createStartDocument() Implements abstract javax. Doc from javax. Creates a new instance of a StartDocument event
|
createStartDocument | back to summary |
---|---|
public StartDocument createStartDocument(String encoding) Implements abstract javax. Doc from javax. Creates a new instance of a StartDocument event
|
createStartDocument | back to summary |
---|---|
public StartDocument createStartDocument(String encoding, String version) Implements abstract javax. Doc from 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. Doc from 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. 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) 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. Doc from 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. |