org.apache.commons.jxpath.xml
Class XMLParser2

java.lang.Object
  extended byorg.apache.commons.jxpath.xml.XMLParser2
All Implemented Interfaces:
XMLParser
Direct Known Subclasses:
DocumentContainer, DOMParser, JDOMParser

public abstract class XMLParser2
extends java.lang.Object
implements XMLParser

The abstract superclass of XML parsers that produce DOM Documents. The features have the same defaults as DocumentBuilderFactory.

Version:
$Revision: 1.3 $ $Date: 2004/02/29 14:17:37 $
Author:
Dmitri Plotnikov

Field Summary
private  boolean coalescing
           
private  boolean expandEntityRef
           
private  boolean ignoreComments
           
private  boolean namespaceAware
           
private  boolean validating
           
private  boolean whitespace
           
 
Constructor Summary
XMLParser2()
           
 
Method Summary
 boolean isCoalescing()
           
 boolean isExpandEntityReferences()
           
 boolean isIgnoringComments()
           
 boolean isIgnoringElementContentWhitespace()
           
 boolean isNamespaceAware()
           
 boolean isValidating()
           
abstract  java.lang.Object parseXML(java.io.InputStream stream)
          Reads the supplied XML file and returns the resulting model, which is not necessarily DOM.
 void setCoalescing(boolean coalescing)
           
 void setExpandEntityReferences(boolean expandEntityRef)
           
 void setIgnoringComments(boolean ignoreComments)
           
 void setIgnoringElementContentWhitespace(boolean whitespace)
           
 void setNamespaceAware(boolean namespaceAware)
           
 void setValidating(boolean validating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validating

private boolean validating

namespaceAware

private boolean namespaceAware

whitespace

private boolean whitespace

expandEntityRef

private boolean expandEntityRef

ignoreComments

private boolean ignoreComments

coalescing

private boolean coalescing
Constructor Detail

XMLParser2

public XMLParser2()
Method Detail

setValidating

public void setValidating(boolean validating)
See Also:
DocumentBuilderFactory#setValidating(boolean)

isValidating

public boolean isValidating()
See Also:
DocumentBuilderFactory#isValidating()

isNamespaceAware

public boolean isNamespaceAware()
See Also:
DocumentBuilderFactory#isNamespaceAware()

setNamespaceAware

public void setNamespaceAware(boolean namespaceAware)
See Also:
DocumentBuilderFactory#setNamespaceAware(boolean)

setIgnoringElementContentWhitespace

public void setIgnoringElementContentWhitespace(boolean whitespace)
See Also:
DocumentBuilderFactory#setIgnoringElementContentWhitespace(boolean)

isIgnoringElementContentWhitespace

public boolean isIgnoringElementContentWhitespace()
See Also:
DocumentBuilderFactory#isIgnoringElementContentWhitespace()

isExpandEntityReferences

public boolean isExpandEntityReferences()
See Also:
DocumentBuilderFactory#isExpandEntityReferences()

setExpandEntityReferences

public void setExpandEntityReferences(boolean expandEntityRef)
See Also:
DocumentBuilderFactory#setExpandEntityReferences(boolean)

isIgnoringComments

public boolean isIgnoringComments()
See Also:
DocumentBuilderFactory#isIgnoringComments()

setIgnoringComments

public void setIgnoringComments(boolean ignoreComments)
See Also:
DocumentBuilderFactory#setIgnoringComments(boolean)

isCoalescing

public boolean isCoalescing()
See Also:
DocumentBuilderFactory#isCoalescing()

setCoalescing

public void setCoalescing(boolean coalescing)
See Also:
DocumentBuilderFactory#setCoalescing(boolean)

parseXML

public abstract java.lang.Object parseXML(java.io.InputStream stream)
Description copied from interface: XMLParser
Reads the supplied XML file and returns the resulting model, which is not necessarily DOM.

Specified by:
parseXML in interface XMLParser