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

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jsr173 Stax » 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



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.