Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.jxpath.xml
Class XMLParser2  view XMLParser2 download XMLParser2.java

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 $

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)

isValidating

public boolean isValidating()

isNamespaceAware

public boolean isNamespaceAware()

setNamespaceAware

public void setNamespaceAware(boolean namespaceAware)

setIgnoringElementContentWhitespace

public void setIgnoringElementContentWhitespace(boolean whitespace)

isIgnoringElementContentWhitespace

public boolean isIgnoringElementContentWhitespace()

isExpandEntityReferences

public boolean isExpandEntityReferences()

setExpandEntityReferences

public void setExpandEntityReferences(boolean expandEntityRef)

isIgnoringComments

public boolean isIgnoringComments()

setIgnoringComments

public void setIgnoringComments(boolean ignoreComments)

isCoalescing

public boolean isCoalescing()

setCoalescing

public void setCoalescing(boolean coalescing)

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