jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.xml
Class JetWebXMLReader

java.lang.Object
  extended by cedar.jetweb.xml.JetWebXMLReader
Direct Known Subclasses:
JetWebLogReader, JetWebPlotMLReader

public class JetWebXMLReader
extends java.lang.Object

Uses JDOM API to read a JetWeb XML file. Reads XML using a SAX parser.

Version:
$Date: 2006-04-09 11:26:34 +0100 (Sun, 09 Apr 2006) $ $Revision: 1100 $
Author:
S Butterworth, UCL.

Field Summary
protected static boolean DEFAULT_CANONICAL
          Default canonical output (false).
protected static boolean DEFAULT_DYNAMIC_VALIDATION
          Default dynamic validation support (false).
protected static boolean DEFAULT_LOAD_EXTERNAL_DTD
          Default load external DTD (true).
protected static boolean DEFAULT_NAMESPACES
          Default namespaces support (true).
protected static java.lang.String DEFAULT_PARSER_NAME
          Default parser name.
protected static boolean DEFAULT_SCHEMA_FULL_CHECKING
          Default Schema full checking support (false).
protected static boolean DEFAULT_SCHEMA_VALIDATION
          Default Schema validation support (false).
protected static boolean DEFAULT_VALIDATION
          Default validation support (false).
protected static java.lang.String DYNAMIC_VALIDATION_FEATURE_ID
          Dynamic validation feature id (http://apache.org/xml/features/validation/dynamic).
protected static java.lang.String LOAD_EXTERNAL_DTD_FEATURE_ID
          Load external DTD feature id (http://apache.org/xml/features/nonvalidating/load-external-dtd).
protected static java.lang.String NAMESPACES_FEATURE_ID
          Namespaces feature id (http://xml.org/sax/features/namespaces).
protected static java.lang.String SCHEMA_FULL_CHECKING_FEATURE_ID
          Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).
protected static java.lang.String SCHEMA_VALIDATION_FEATURE_ID
          Schema validation feature id (http://apache.org/xml/features/validation/schema).
protected static java.lang.String VALIDATION_FEATURE_ID
          Validation feature id (http://xml.org/sax/features/validation).
 
Constructor Summary
JetWebXMLReader(java.lang.String filename)
          Original constructor: requires xml filename default parser used JDOM SAX Builder constructs a JDOM Document validation is switched off
JetWebXMLReader(java.lang.String fname, boolean zipped)
          Constructor allowing zipfiles to be input and xml validation to be switched on.
 
Method Summary
protected  org.jdom.Document getDocument()
           
protected  java.lang.String getFileName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACES_FEATURE_ID

protected static final java.lang.String NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces).

See Also:
Constant Field Values


VALIDATION_FEATURE_ID

protected static final java.lang.String VALIDATION_FEATURE_ID
Validation feature id (http://xml.org/sax/features/validation).

See Also:
Constant Field Values


SCHEMA_VALIDATION_FEATURE_ID

protected static final java.lang.String SCHEMA_VALIDATION_FEATURE_ID
Schema validation feature id (http://apache.org/xml/features/validation/schema).

See Also:
Constant Field Values


SCHEMA_FULL_CHECKING_FEATURE_ID

protected static final java.lang.String SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).

See Also:
Constant Field Values


DYNAMIC_VALIDATION_FEATURE_ID

protected static final java.lang.String DYNAMIC_VALIDATION_FEATURE_ID
Dynamic validation feature id (http://apache.org/xml/features/validation/dynamic).

See Also:
Constant Field Values


LOAD_EXTERNAL_DTD_FEATURE_ID

protected static final java.lang.String LOAD_EXTERNAL_DTD_FEATURE_ID
Load external DTD feature id (http://apache.org/xml/features/nonvalidating/load-external-dtd).

See Also:
Constant Field Values


DEFAULT_PARSER_NAME

protected static final java.lang.String DEFAULT_PARSER_NAME
Default parser name.

See Also:
Constant Field Values


DEFAULT_NAMESPACES

protected static final boolean DEFAULT_NAMESPACES
Default namespaces support (true).

See Also:
Constant Field Values


DEFAULT_VALIDATION

protected static final boolean DEFAULT_VALIDATION
Default validation support (false).

See Also:
Constant Field Values


DEFAULT_LOAD_EXTERNAL_DTD

protected static final boolean DEFAULT_LOAD_EXTERNAL_DTD
Default load external DTD (true).

See Also:
Constant Field Values


DEFAULT_SCHEMA_VALIDATION

protected static final boolean DEFAULT_SCHEMA_VALIDATION
Default Schema validation support (false).

See Also:
Constant Field Values


DEFAULT_SCHEMA_FULL_CHECKING

protected static final boolean DEFAULT_SCHEMA_FULL_CHECKING
Default Schema full checking support (false).

See Also:
Constant Field Values


DEFAULT_DYNAMIC_VALIDATION

protected static final boolean DEFAULT_DYNAMIC_VALIDATION
Default dynamic validation support (false).

See Also:
Constant Field Values


DEFAULT_CANONICAL

protected static final boolean DEFAULT_CANONICAL
Default canonical output (false).

See Also:
Constant Field Values

Constructor Detail

JetWebXMLReader

public JetWebXMLReader(java.lang.String filename)
                throws JetWebXMLException
Original constructor: requires xml filename default parser used JDOM SAX Builder constructs a JDOM Document validation is switched off

Throws:
JetWebXMLException


JetWebXMLReader

public JetWebXMLReader(java.lang.String fname,
                       boolean zipped)
                throws JetWebXMLException
Constructor allowing zipfiles to be input and xml validation to be switched on. Validation is performed if System properties validateXML or validateSchema are 'true'

Parameters:
filename - the input xml file, including path
zipped - true if the xml file is intended to be zipped - in gzip format
Throws:
JetWebXMLException

Method Detail

getDocument

protected org.jdom.Document getDocument()

getFileName

protected java.lang.String getFileName()