Java Doc for DocumentBuilderFactory.java in  » XML » Piccolo » javax » xml » parsers » 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 » XML » Piccolo » javax.xml.parsers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.parsers.DocumentBuilderFactory

DocumentBuilderFactory
abstract public class DocumentBuilderFactory (Code)
Defines a factory API that enables applications to obtain a parser that produces DOM object trees from XML documents. An implementation of the DocumentBuilderFactory class is NOT guaranteed to be thread safe. It is up to the user application to make sure about the use of the DocumentBuilderFactory from more than one thread. Alternatively the application can have one instance of the DocumentBuilderFactory per thread. An application can use the same instance of the factory to obtain one or more instances of the DocumentBuilder provided the instance of the factory isn't being used in more than one thread at a time.
since:
   JAXP 1.0
version:
   1.0



Constructor Summary
protected  DocumentBuilderFactory()
    

Method Summary
abstract public  ObjectgetAttribute(String name)
     Allows the user to retrieve specific attributes on the underlying implementation.
Parameters:
  name - The name of the attribute.
public  booleanisCoalescing()
     Indicates whether or not the factory is configured to produce parsers which converts CDATA nodes to Text nodes and appends it to the adjacent (if any) Text node.
public  booleanisExpandEntityReferences()
     Indicates whether or not the factory is configured to produce parsers which expand entity reference nodes.
public  booleanisIgnoringComments()
     Indicates whether or not the factory is configured to produce parsers which ignores comments.
public  booleanisIgnoringElementContentWhitespace()
     Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content.
public  booleanisNamespaceAware()
     Indicates whether or not the factory is configured to produce parsers which are namespace aware.
public  booleanisValidating()
     Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.
abstract public  DocumentBuildernewDocumentBuilder()
     Creates a new instance of a javax.xml.parsers.DocumentBuilder using the currently configured parameters.
exception:
  ParserConfigurationException - if a DocumentBuildercannot be created which satisfies the configuration requested.
public static  DocumentBuilderFactorynewInstance()
     Obtain a new instance of a DocumentBuilderFactory.
abstract public  voidsetAttribute(String name, Object value)
     Allows the user to set specific attributes on the underlying implementation.
public  voidsetCoalescing(boolean coalescing)
     Specifies that the parser produced by this code will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node.
public  voidsetExpandEntityReferences(boolean expandEntityRef)
     Specifies that the parser produced by this code will expand entity reference nodes.
public  voidsetIgnoringComments(boolean ignoreComments)
     Specifies that the parser produced by this code will ignore comments.
public  voidsetIgnoringElementContentWhitespace(boolean whitespace)
     Specifies that the parsers created by this factory must eliminate whitespace in element content (sometimes known loosely as 'ignorable whitespace') when parsing XML documents (see XML Rec 2.10).
public  voidsetNamespaceAware(boolean awareness)
     Specifies that the parser produced by this code will provide support for XML namespaces.
public  voidsetValidating(boolean validating)
     Specifies that the parser produced by this code will validate documents as they are parsed.


Constructor Detail
DocumentBuilderFactory
protected DocumentBuilderFactory()(Code)




Method Detail
getAttribute
abstract public Object getAttribute(String name) throws IllegalArgumentException(Code)
Allows the user to retrieve specific attributes on the underlying implementation.
Parameters:
  name - The name of the attribute. value The value of the attribute.
exception:
  IllegalArgumentException - thrown if the underlyingimplementation doesn't recognize the attribute.



isCoalescing
public boolean isCoalescing()(Code)
Indicates whether or not the factory is configured to produce parsers which converts CDATA nodes to Text nodes and appends it to the adjacent (if any) Text node. true if the factory is configured to produce parserswhich converts CDATA nodes to Text nodes and appends it tothe adjacent (if any) Text node; false otherwise.



isExpandEntityReferences
public boolean isExpandEntityReferences()(Code)
Indicates whether or not the factory is configured to produce parsers which expand entity reference nodes. true if the factory is configured to produce parserswhich expand entity reference nodes; false otherwise.



isIgnoringComments
public boolean isIgnoringComments()(Code)
Indicates whether or not the factory is configured to produce parsers which ignores comments. true if the factory is configured to produce parserswhich ignores comments; false otherwise.



isIgnoringElementContentWhitespace
public boolean isIgnoringElementContentWhitespace()(Code)
Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content. true if the factory is configured to produce parserswhich ignore ignorable whitespace in element content;false otherwise.



isNamespaceAware
public boolean isNamespaceAware()(Code)
Indicates whether or not the factory is configured to produce parsers which are namespace aware. true if the factory is configured to produce parsers whichare namespace aware; false otherwise.



isValidating
public boolean isValidating()(Code)
Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. true if the factory is configured to produce parserswhich validate the XML content during parse; false otherwise.



newDocumentBuilder
abstract public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException(Code)
Creates a new instance of a javax.xml.parsers.DocumentBuilder using the currently configured parameters.
exception:
  ParserConfigurationException - if a DocumentBuildercannot be created which satisfies the configuration requested. A new instance of a DocumentBuilder.



newInstance
public static DocumentBuilderFactory newInstance() throws FactoryConfigurationError(Code)
Obtain a new instance of a DocumentBuilderFactory. This static method creates a new factory instance. This method uses the following ordered lookup procedure to determine the DocumentBuilderFactory implementation class to load:
  • Use the javax.xml.parsers.DocumentBuilderFactory system property.
  • Use the properties file "lib/jaxp.properties" in the JRE directory. This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
  • Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.parsers.DocumentBuilderFactory in jars available to the runtime.
  • Platform default DocumentBuilderFactory instance.
Once an application has obtained a reference to a DocumentBuilderFactory it can use the factory to configure and obtain parser instances.
exception:
  FactoryConfigurationError - if the implementation is notavailable or cannot be instantiated.



setAttribute
abstract public void setAttribute(String name, Object value) throws IllegalArgumentException(Code)
Allows the user to set specific attributes on the underlying implementation.
Parameters:
  name - The name of the attribute.
Parameters:
  value - The value of the attribute.
exception:
  IllegalArgumentException - thrown if the underlyingimplementation doesn't recognize the attribute.



setCoalescing
public void setCoalescing(boolean coalescing)(Code)
Specifies that the parser produced by this code will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node. By default the value of this is set to false
Parameters:
  coalescing - true if the parser produced will convert CDATA nodesto Text nodes and append it to the adjacent (if any)text node; false otherwise.



setExpandEntityReferences
public void setExpandEntityReferences(boolean expandEntityRef)(Code)
Specifies that the parser produced by this code will expand entity reference nodes. By default the value of this is set to true
Parameters:
  expandEntityRef - true if the parser produced will expand entityreference nodes; false otherwise.



setIgnoringComments
public void setIgnoringComments(boolean ignoreComments)(Code)
Specifies that the parser produced by this code will ignore comments. By default the value of this is set to false



setIgnoringElementContentWhitespace
public void setIgnoringElementContentWhitespace(boolean whitespace)(Code)
Specifies that the parsers created by this factory must eliminate whitespace in element content (sometimes known loosely as 'ignorable whitespace') when parsing XML documents (see XML Rec 2.10). Note that only whitespace which is directly contained within element content that has an element only content model (see XML Rec 3.2.1) will be eliminated. Due to reliance on the content model this setting requires the parser to be in validating mode. By default the value of this is set to false.
Parameters:
  whitespace - true if the parser created must eliminate whitespacein the element content when parsing XML documents;false otherwise.



setNamespaceAware
public void setNamespaceAware(boolean awareness)(Code)
Specifies that the parser produced by this code will provide support for XML namespaces. By default the value of this is set to false
Parameters:
  awareness - true if the parser produced will provide supportfor XML namespaces; false otherwise.



setValidating
public void setValidating(boolean validating)(Code)
Specifies that the parser produced by this code will validate documents as they are parsed. By default the value of this is set to false.
Parameters:
  validating - true if the parser produced will validate documentsas they are parsed; false otherwise.



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.