Java Doc for XMLEventFactory.java in  » 6.0-JDK-Core » xml » javax » xml » stream » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » xml » javax.xml.stream 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.stream.XMLEventFactory

XMLEventFactory
abstract public class XMLEventFactory (Code)
This interface defines a utility class for creating instances of XMLEvents
version:
   1.0
author:
   Copyright (c) 2003 by BEA Systems. All Rights Reserved.
See Also:   javax.xml.stream.events.StartElement
See Also:   javax.xml.stream.events.EndElement
See Also:   javax.xml.stream.events.ProcessingInstruction
See Also:   javax.xml.stream.events.Comment
See Also:   javax.xml.stream.events.Characters
See Also:   javax.xml.stream.events.StartDocument
See Also:   javax.xml.stream.events.EndDocument
See Also:   javax.xml.stream.events.DTD
since:
   1.6



Constructor Summary
protected  XMLEventFactory()
    

Method Summary
abstract public  AttributecreateAttribute(String prefix, String namespaceURI, String localName, String value)
    
abstract public  AttributecreateAttribute(String localName, String value)
    
abstract public  AttributecreateAttribute(QName name, String value)
    
abstract public  CharacterscreateCData(String content)
    
abstract public  CharacterscreateCharacters(String content)
     Create a Characters event, this method does not check if the content is all whitespace.
abstract public  CommentcreateComment(String text)
    
abstract public  DTDcreateDTD(String dtd)
    
abstract public  EndDocumentcreateEndDocument()
    
abstract public  EndElementcreateEndElement(QName name, Iterator namespaces)
    
abstract public  EndElementcreateEndElement(String prefix, String namespaceUri, String localName)
    
abstract public  EndElementcreateEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces)
    
abstract public  EntityReferencecreateEntityReference(String name, EntityDeclaration declaration)
    
abstract public  CharacterscreateIgnorableSpace(String content)
    
abstract public  NamespacecreateNamespace(String namespaceURI)
    
abstract public  NamespacecreateNamespace(String prefix, String namespaceUri)
    
abstract public  ProcessingInstructioncreateProcessingInstruction(String target, String data)
    
abstract public  CharacterscreateSpace(String content)
    
abstract public  StartDocumentcreateStartDocument()
    
abstract public  StartDocumentcreateStartDocument(String encoding, String version, boolean standalone)
    
abstract public  StartDocumentcreateStartDocument(String encoding, String version)
    
abstract public  StartDocumentcreateStartDocument(String encoding)
    
abstract public  StartElementcreateStartElement(QName name, Iterator attributes, Iterator namespaces)
     Create a new StartElement.
abstract public  StartElementcreateStartElement(String prefix, String namespaceUri, String localName)
     Create a new StartElement.
abstract public  StartElementcreateStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)
     Create a new StartElement.
abstract public  StartElementcreateStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
     Create a new StartElement.
public static  XMLEventFactorynewInstance()
    
public static  XMLEventFactorynewInstance(String factoryId, ClassLoader classLoader)
    
abstract public  voidsetLocation(Location location)
     This method allows setting of the Location on each event that is created by this factory.


Constructor Detail
XMLEventFactory
protected XMLEventFactory()(Code)




Method Detail
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



newInstance
public static XMLEventFactory newInstance() throws FactoryConfigurationError(Code)
Create a new instance of the factory
throws:
  FactoryConfigurationError - if an instance of this factory cannot be loaded



newInstance
public static XMLEventFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError(Code)
Create a new instance of the factory
Parameters:
  factoryId - Name of the factory to find, same asa property name
Parameters:
  classLoader - classLoader to use the factory implementation
throws:
  FactoryConfigurationError - if an instance of this factory cannot be loaded



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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.