API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.parsers. DocumentBuilderFactory View Source
Author(s)
Jeff Suttor
Neeraj Bajaj
Since
Version
$Revision: 1.5 $, $Date: 2005/11/03 19:34:14 $
Serial
Hierarchy
 Object
      DocumentBuilderFactory
Implements
Subclasses
Description
publicabstract abstract class DocumentBuilderFactory
Defines a factory API that enables applications to obtain a parser that produces DOM object trees from XML documents.
See also:   
Constructors
protected DocumentBuilderFactory ()
  Protected constructor to prevent instantiation.
Methods
Hide/Show inherited methods
publicabstract Object getAttribute (String name) throws IllegalArgumentException
  Allows the user to retrieve specific attributes on the underlying implementation.
publicabstract boolean getFeature (String name) throws ParserConfigurationException
  Get the state of the named feature.
public Schema getSchema ()
  Gets the Schema object specified through the DocumentBuilderFactory.setSchema(Schema schema) method.
public boolean isCoalescing ()
  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 boolean isExpandEntityReferences ()
  Indicates whether or not the factory is configured to produce parsers which expand entity reference nodes.
public boolean isIgnoringComments ()
  Indicates whether or not the factory is configured to produce parsers which ignores comments.
public boolean isIgnoringElementContentWhitespace ()
  Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content.
public boolean isNamespaceAware ()
  Indicates whether or not the factory is configured to produce parsers which are namespace aware.
public boolean isValidating ()
  Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.
public boolean isXIncludeAware ()
  Get state of XInclude processing.
publicabstract DocumentBuilder newDocumentBuilder () throws ParserConfigurationException
  Creates a new instance of a DocumentBuilder using the currently configured parameters.
publicstatic DocumentBuilderFactory newInstance ()
  Obtain a new instance of a DocumentBuilderFactory.
publicstatic DocumentBuilderFactory newInstance (String factoryClassName, ClassLoader classLoader)
  Obtain a new instance of a DocumentBuilderFactory from class name.
publicabstract void setAttribute (String name, Object value) throws IllegalArgumentException
  Allows the user to set specific attributes on the underlying implementation.
public void setCoalescing (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 void setExpandEntityReferences (boolean expandEntityRef)
  Specifies that the parser produced by this code will expand entity reference nodes.
publicabstract void setFeature (String name, boolean value) throws ParserConfigurationException
  Set a feature for this DocumentBuilderFactory and DocumentBuilders created by this factory.
public void setIgnoringComments (boolean ignoreComments)
  Specifies that the parser produced by this code will ignore comments.
public void setIgnoringElementContentWhitespace (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 void setNamespaceAware (boolean awareness)
  Specifies that the parser produced by this code will provide support for XML namespaces.
public void setSchema (Schema schema)
  Set the Schema to be used by parsers created from this factory.
public void setValidating (boolean validating)
  Specifies that the parser produced by this code will validate documents as they are parsed.
public void setXIncludeAware (boolean state)
  Set state of XInclude processing.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar