org.geotools.validation.xml
Class XMLReader

java.lang.Object
  extended byorg.geotools.validation.xml.XMLReader

public class XMLReader
extends java.lang.Object

Load validation configuration from XML.

Version:
$Id: XMLReader.java 17704 2006-01-23 00:26:16Z desruisseaux $
Author:
dzwiers, Refractions Research, Inc., $Author: jive $ (last modification)

Method Summary
static java.util.Map loadPlugIns(java.io.File plugInDir)
          loadPlugIns purpose.
static java.util.Map loadValidations(java.io.File validationDir, java.util.Map plugInDTOs)
          Loads all the test suites in the validations directory
static PlugInDTO readPlugIn(java.io.Reader inputSource)
          readPlugIn purpose.
static TestSuiteDTO readTestSuite(java.lang.String name, java.io.Reader inputSource, java.util.Map plugIns)
          readTestSuiteDTO purpose.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readPlugIn

public static PlugInDTO readPlugIn(java.io.Reader inputSource)
                            throws ValidationException
readPlugIn purpose.

This method is intended to read an XML PlugIn (pluginSchema.xsd) into a PlugInDTO object.

Parameters:
inputSource - A reader which contains a copy of a valid PlugIn desciption.
Returns:
the resulting dto based on the input provided.
Throws:
ValidationException - DOCUMENT ME!

readTestSuite

public static TestSuiteDTO readTestSuite(java.lang.String name,
                                         java.io.Reader inputSource,
                                         java.util.Map plugIns)
                                  throws ValidationException
readTestSuiteDTO purpose.

This method is intended to read an XML Test (testSuiteSchema.xsd) into a TestSuiteDTO object.

Parameters:
inputSource - A reader which contains a copy of a valid TestSuite desciption.
plugIns - A name of plugin names to valid plugin DTOs
Returns:
the resulting dto based on the input provided.
Throws:
ValidationException - DOCUMENT ME!

loadPlugIns

public static java.util.Map loadPlugIns(java.io.File plugInDir)
                                 throws ValidationException
loadPlugIns purpose.

Loads all the plugins in the directory

Parameters:
plugInDir -
Returns:
Throws:
ValidationException - DOCUMENT ME!

loadValidations

public static java.util.Map loadValidations(java.io.File validationDir,
                                            java.util.Map plugInDTOs)
                                     throws ValidationException
Loads all the test suites in the validations directory

Parameters:
validationDir -
plugInDTOs - Already loaded list of plug-ins to link.
Returns:
Throws:
ValidationException - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.