org.eclipse.ercp.jaxp.implForCore
Class DocumentBuilderImpl

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilder
      extended by org.eclipse.ercp.jaxp.implForCore.DocumentBuilderImpl

public class DocumentBuilderImpl
extends DocumentBuilder

Implementation of DocumentBuilder


Constructor Summary
DocumentBuilderImpl(DocumentBuilderFactory factory)
          Constructor for DocumentBuilderImpl.
 
Method Summary
 DOMImplementation getDOMImplementation()
          Obtain an instance of a DOMImplementation object.
 boolean isNamespaceAware()
          Indicates whether or not this parser is configured to understand namespaces.
 boolean isValidating()
          Indicates whether or not this parser is configured to validate XML documents.
 Document newDocument()
          Obtain a new instance of a DOM Document object to build a DOM tree with.
 Document parse(InputSource is)
          Parse the content of the given input source as an XML document and return a new DOM Document object.
 void setEntityResolver(EntityResolver entityResolver)
          Specify the EntityResolver to be used to resolve entities present in the XML document to be parsed.
 void setErrorHandler(ErrorHandler errorHandler)
          Specify the ErrorHandler to be used to report errors present in the XML document to be parsed.
 
Methods inherited from class javax.xml.parsers.DocumentBuilder
parse, parse, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBuilderImpl

public DocumentBuilderImpl(DocumentBuilderFactory factory)
Constructor for DocumentBuilderImpl.

Method Detail

parse

public Document parse(InputSource is)
               throws SAXException,
                      java.io.IOException
Description copied from class: DocumentBuilder
Parse the content of the given input source as an XML document and return a new DOM Document object.

Specified by:
parse in class DocumentBuilder
Parameters:
is - InputSource containing the content to be parsed.
Returns:
A new DOM Document object.
Throws:
SAXException - If any parse errors occur.
java.io.IOException - If any IO errors occur.
See Also:
DocumentBuilder.parse(InputSource)

isNamespaceAware

public boolean isNamespaceAware()
Description copied from class: DocumentBuilder
Indicates whether or not this parser is configured to understand namespaces.

Specified by:
isNamespaceAware in class DocumentBuilder
Returns:
true if this parser is configured to understand namespaces; false otherwise.
See Also:
DocumentBuilder.isNamespaceAware()

isValidating

public boolean isValidating()
Description copied from class: DocumentBuilder
Indicates whether or not this parser is configured to validate XML documents.

Specified by:
isValidating in class DocumentBuilder
Returns:
true if this parser is configured to validate XML documents; false otherwise.
See Also:
DocumentBuilder.isValidating()

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)
Description copied from class: DocumentBuilder
Specify the EntityResolver to be used to resolve entities present in the XML document to be parsed. Setting this to null will result in the underlying implementation using it's own default implementation and behavior.

Specified by:
setEntityResolver in class DocumentBuilder
Parameters:
entityResolver - The EntityResolver to be used to resolve entities present in the XML document to be parsed.
See Also:
DocumentBuilder.setEntityResolver(EntityResolver)

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Description copied from class: DocumentBuilder
Specify the ErrorHandler to be used to report errors present in the XML document to be parsed. Setting this to null will result in the underlying implementation using it's own default implementation and behavior.

Specified by:
setErrorHandler in class DocumentBuilder
Parameters:
errorHandler - The ErrorHandler to be used to report errors present in the XML document to be parsed.
See Also:
DocumentBuilder.setErrorHandler(ErrorHandler)

newDocument

public Document newDocument()
Description copied from class: DocumentBuilder
Obtain a new instance of a DOM Document object to build a DOM tree with. An alternative way to create a DOM Document object is to use the getDOMImplementation method to get a DOM Level 2 DOMImplementation object and then use DOM Level 2 methods on that object to create a DOM Document object.

Specified by:
newDocument in class DocumentBuilder
Returns:
A new instance of a DOM Document object.
See Also:
DocumentBuilder.newDocument()

getDOMImplementation

public DOMImplementation getDOMImplementation()
Description copied from class: DocumentBuilder
Obtain an instance of a DOMImplementation object.

Specified by:
getDOMImplementation in class DocumentBuilder
Returns:
A new instance of a DOMImplementation.
See Also:
DocumentBuilder.getDOMImplementation()