org.geotools.validation.xml
Class XMLReader

Object
  extended by XMLReader

public class XMLReader
extends Object

Load validation configuration from XML.

Author:
dzwiers, Refractions Research, Inc., $Author: jive $ (last modification)

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

Method Detail

readPlugIn

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

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

Parameters:
inputSource - A features 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(String name,
                                         Reader inputSource,
                                         Map plugIns)
                                  throws ValidationException
readTestSuiteDTO purpose.

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

Parameters:
inputSource - A features 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 Map loadPlugIns(File plugInDir)
                       throws ValidationException
loadPlugIns purpose.

Loads all the plugins in the directory

Parameters:
plugInDir -
Throws:
ValidationException - DOCUMENT ME!

loadValidations

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

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


Copyright © 1996-2014 Geotools. All Rights Reserved.