| java.lang.Object javax.xml.stream.XMLEventFactory
Method Summary | |
abstract public Attribute | createAttribute(String prefix, String namespaceURI, String localName, String value) | abstract public Attribute | createAttribute(String localName, String value) | abstract public Attribute | createAttribute(QName name, String value) | abstract public Characters | createCData(String content) | abstract public Characters | createCharacters(String content) Create a Characters event, this method does not check if the content
is all whitespace. | abstract public Comment | createComment(String text) | abstract public DTD | createDTD(String dtd) | abstract public EndDocument | createEndDocument() | abstract public EndElement | createEndElement(QName name, Iterator namespaces) | abstract public EndElement | createEndElement(String prefix, String namespaceUri, String localName) | abstract public EndElement | createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces) | abstract public EntityReference | createEntityReference(String name, EntityDeclaration declaration) | abstract public Characters | createIgnorableSpace(String content) | abstract public Namespace | createNamespace(String namespaceURI) | abstract public Namespace | createNamespace(String prefix, String namespaceUri) | abstract public ProcessingInstruction | createProcessingInstruction(String target, String data) | abstract public Characters | createSpace(String content) | abstract public StartDocument | createStartDocument() | abstract public StartDocument | createStartDocument(String encoding, String version, boolean standalone) | abstract public StartDocument | createStartDocument(String encoding, String version) | abstract public StartDocument | createStartDocument(String encoding) | abstract public StartElement | createStartElement(QName name, Iterator attributes, Iterator namespaces) Create a new StartElement. | abstract public StartElement | createStartElement(String prefix, String namespaceUri, String localName) Create a new StartElement. | abstract public StartElement | createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces) Create a new StartElement. | abstract public StartElement | createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context) Create a new StartElement. | public static XMLEventFactory | newInstance() | public static XMLEventFactory | newInstance(String factoryId, ClassLoader classLoader) | abstract public void | setLocation(Location location) This method allows setting of the Location on each event that
is created by this factory. |
XMLEventFactory | protected XMLEventFactory()(Code) | | |
createAttribute | abstract public Attribute createAttribute(String prefix, String namespaceURI, String localName, String value)(Code) | | Create a new Attribute
Parameters: prefix - the prefix of this attribute, may not be null Parameters: namespaceURI - the attribute value is set to this value, may not be null Parameters: localName - the local name of the XML name of the attribute, localName cannot be null Parameters: value - the attribute value to set, may not be null the Attribute with specified values |
createAttribute | abstract public Attribute createAttribute(String localName, String value)(Code) | | Create a new Attribute
Parameters: localName - the local name of the XML name of the attribute, localName cannot be null Parameters: value - the attribute value to set, may not be null the Attribute with specified values |
createAttribute | abstract public Attribute createAttribute(QName name, String value)(Code) | | Create a new Attribute
Parameters: name - the qualified name of the attribute, may not be null Parameters: value - the attribute value to set, may not be null the Attribute with specified values |
createCData | abstract public Characters createCData(String content)(Code) | | Create a Characters event with the CData flag set to true
Parameters: content - the string to create a Characters event |
createCharacters | abstract public Characters createCharacters(String content)(Code) | | Create a Characters event, this method does not check if the content
is all whitespace. To create a space event use #createSpace(String)
Parameters: content - the string to create a Characters event |
createComment | abstract public Comment createComment(String text)(Code) | | Create a comment
Parameters: text - The text of the commenta Comment event |
createDTD | abstract public DTD createDTD(String dtd)(Code) | | Create a document type definition event
This string contains the entire document type declaration that matches
the doctypedecl in the XML 1.0 specification
Parameters: dtd - the text of the document type definition a DTD event |
createEndDocument | abstract public EndDocument createEndDocument()(Code) | | Creates a new instance of an EndDocument event
an EndDocument event |
createEndElement | abstract public EndElement createEndElement(QName name, Iterator namespaces)(Code) | | Create a new EndElement
Parameters: name - the qualified name of the EndElement Parameters: namespaces - an optional unordered set of objects that implement Namespace that have gone out of scope, may be null an instance of the requested EndElement |
createEndElement | abstract public EndElement createEndElement(String prefix, String namespaceUri, String localName)(Code) | | Create a new EndElement
Parameters: namespaceUri - the uri of the QName of the new StartElement Parameters: localName - the local name of the QName of the new StartElement Parameters: prefix - the prefix of the QName of the new StartElement an instance of the requested EndElement |
createEndElement | abstract public EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces)(Code) | | Create a new EndElement
Parameters: namespaceUri - the uri of the QName of the new StartElement Parameters: localName - the local name of the QName of the new StartElement Parameters: prefix - the prefix of the QName of the new StartElement Parameters: namespaces - an unordered set of objects that implement Namespace that have gone out of scope, may be null an instance of the requested EndElement |
createEntityReference | abstract public EntityReference createEntityReference(String name, EntityDeclaration declaration)(Code) | | Creates a new instance of a EntityReference event
Parameters: name - The name of the reference Parameters: declaration - the declaration for the event an EntityReference event |
createIgnorableSpace | abstract public Characters createIgnorableSpace(String content)(Code) | | Create an ignorable space
Parameters: content - the space to create a Characters event |
createNamespace | abstract public Namespace createNamespace(String namespaceURI)(Code) | | Create a new default Namespace
Parameters: namespaceURI - the default namespace uri the Namespace with the specified value |
createNamespace | abstract public Namespace createNamespace(String prefix, String namespaceUri)(Code) | | Create a new Namespace
Parameters: prefix - the prefix of this namespace, may not be null Parameters: namespaceUri - the attribute value is set to this value, may not be null the Namespace with the specified values |
createProcessingInstruction | abstract public ProcessingInstruction createProcessingInstruction(String target, String data)(Code) | | Create a processing instruction
Parameters: target - The target of the processing instruction Parameters: data - The text of the processing instruction a ProcessingInstruction event |
createSpace | abstract public Characters createSpace(String content)(Code) | | Create a Characters event with the isSpace flag set to true
Parameters: content - the content of the space to create a Characters event |
createStartDocument | abstract public StartDocument createStartDocument()(Code) | | Creates a new instance of a StartDocument event
a StartDocument event |
createStartDocument | abstract public StartDocument createStartDocument(String encoding, String version, boolean standalone)(Code) | | Creates a new instance of a StartDocument event
Parameters: encoding - the encoding style Parameters: version - the XML version Parameters: standalone - the status of standalone may be set to "true" or "false" a StartDocument event |
createStartDocument | abstract public StartDocument createStartDocument(String encoding, String version)(Code) | | Creates a new instance of a StartDocument event
Parameters: encoding - the encoding style Parameters: version - the XML version a StartDocument event |
createStartDocument | abstract public StartDocument createStartDocument(String encoding)(Code) | | Creates a new instance of a StartDocument event
Parameters: encoding - the encoding style a StartDocument event |
createStartElement | abstract public StartElement createStartElement(QName name, Iterator attributes, Iterator namespaces)(Code) | | 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.
Parameters: name - the qualified name of the attribute, may not be null Parameters: attributes - an optional unordered set of objects that implement Attribute to add to the new StartElement, may be null Parameters: namespaces - an optional unordered set of objects that implement Namespace to add to the new StartElement, may be null an instance of the requested StartElement |
createStartElement | abstract public StartElement createStartElement(String prefix, String namespaceUri, String localName)(Code) | | 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.
Parameters: namespaceUri - the uri of the QName of the new StartElement Parameters: localName - the local name of the QName of the new StartElement Parameters: prefix - the prefix of the QName of the new StartElement an instance of the requested StartElement |
createStartElement | abstract public StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)(Code) | | 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.
Parameters: namespaceUri - the uri of the QName of the new StartElement Parameters: localName - the local name of the QName of the new StartElement Parameters: prefix - the prefix of the QName of the new StartElement Parameters: attributes - an unordered set of objects that implement Attribute to add to the new StartElement Parameters: namespaces - an unordered set of objects that implement Namespace to add to the new StartElement an instance of the requested StartElement |
createStartElement | abstract public StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)(Code) | | 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.
Parameters: namespaceUri - the uri of the QName of the new StartElement Parameters: localName - the local name of the QName of the new StartElement Parameters: prefix - the prefix of the QName of the new StartElement Parameters: attributes - an unordered set of objects that implement Attribute to add to the new StartElement, may be null Parameters: namespaces - an unordered set of objects that implement Namespace to add to the new StartElement, may be null Parameters: context - the namespace context of this element an instance of the requested StartElement |
setLocation | abstract public void setLocation(Location location)(Code) | | 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.
Parameters: location - the location to set on each event created |
|
|