API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.stream. XMLEventFactory View Source
Author(s)
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
Since
1.6
Version
1.0
Serial
Hierarchy
 Object
      XMLEventFactory
Implements
Subclasses
Description
publicabstract abstract class XMLEventFactory
  This interface defines a utility class for creating instances of XMLEvents
Constructors
protected XMLEventFactory ()
Methods
Hide/Show inherited methods
publicabstract Attribute createAttribute (QName name, String value)
  Create a new Attribute
publicabstract Attribute createAttribute (String localName, String value)
  Create a new Attribute
publicabstract Attribute createAttribute (String prefix, String namespaceURI, String localName, String value)
  Create a new Attribute
publicabstract Characters createCData (String content)
  Create a Characters event with the CData flag set to true
publicabstract Characters createCharacters (String content)
  Create a Characters event, this method does not check if the content is all whitespace.
publicabstract Comment createComment (String text)
  Create a comment
publicabstract 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
publicabstract EndDocument createEndDocument ()
  Creates a new instance of an EndDocument event
publicabstract EndElement createEndElement (QName name, Iterator namespaces)
  Create a new EndElement
publicabstract EndElement createEndElement (String prefix, String namespaceUri, String localName)
  Create a new EndElement
publicabstract EndElement createEndElement (String prefix, String namespaceUri, String localName, Iterator namespaces)
  Create a new EndElement
publicabstract EntityReference createEntityReference (String name, EntityDeclaration declaration)
  Creates a new instance of a EntityReference event
publicabstract Characters createIgnorableSpace (String content)
  Create an ignorable space
publicabstract Namespace createNamespace (String namespaceURI)
  Create a new default Namespace
publicabstract Namespace createNamespace (String prefix, String namespaceUri)
  Create a new Namespace
publicabstract ProcessingInstruction createProcessingInstruction (String target, String data)
  Create a processing instruction
publicabstract Characters createSpace (String content)
  Create a Characters event with the isSpace flag set to true
publicabstract StartDocument createStartDocument ()
  Creates a new instance of a StartDocument event
publicabstract StartDocument createStartDocument (String encoding)
  Creates a new instance of a StartDocument event
publicabstract StartDocument createStartDocument (String encoding, String version)
  Creates a new instance of a StartDocument event
publicabstract StartDocument createStartDocument (String encoding, String version, boolean standalone)
  Creates a new instance of a StartDocument event
publicabstract StartElement createStartElement (QName name, Iterator attributes, Iterator namespaces)
  Create a new StartElement.
publicabstract StartElement createStartElement (String prefix, String namespaceUri, String localName)
  Create a new StartElement.
publicabstract StartElement createStartElement (String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)
  Create a new StartElement.
publicabstract StartElement createStartElement (String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
  Create a new StartElement.
publicstatic XMLEventFactory newInstance () throws FactoryConfigurationError
  Create a new instance of the factory
publicstatic XMLEventFactory newInstance (String factoryId, ClassLoader classLoader) throws FactoryConfigurationError
  Create a new instance of the factory
publicabstract void setLocation (Location location)
  This method allows setting of the Location on each event that is created by this factory.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar