| net.refractions.udig.validation.ValidationProcessor
ValidationProcessor | public class ValidationProcessor extends org.geotools.validation.ValidationProcessor (Code) | | Subclass for the geotools ValidationProcessor, with added methods which allow
for tree navigation, etc. For the most part, this adds more baggage to the
class so the Validation Dialog can get information out of it.
author: chorner since: 1.0.1 See Also: org.geotools.validation.ValidationProcessor |
Constructor Summary | |
public | ValidationProcessor(File pluginsDir, File testSuiteFile) Constructor for the udig ValidationProcessor subclass. |
Method Summary | |
public void | addValidation(Validation validation, PlugInDTO plugin, Object testSuiteDTOKey) Adds a testDTO validation to the testSuiteDTO, and calls addValidation
from the superclass. | public Validation | createValidation(PlugInDTO dto) Creates a new validation test of the correct type when passed the plugInDTO. | public Map | getPluginDTOs() | public Set | getPlugins() Returns a Set (HashSet) of plugins (validation tests) available. | public Map<String, TestSuiteDTO> | getTestSuiteDTOs() | public Map | getTests() | public Object[] | getTests(Object plugin) | public String | getUniqueName(Map allItems, String labelPrefix) | public TestSuiteDTO | moveTests(TestSuiteDTO suite, Map<String, TestDTO> tests, boolean allowDupes) Places a Map of tests one-by-one into a TestSuiteDTO. | public void | removeValidation(TestDTO test) | public boolean | renameValidation(String oldKey, String newKey, Object testSuiteDTOKey) | public void | runAllFeatureTests(ILayer[] layers, ValidationResults results, IProgressMonitor monitor) Runs all feature tests by iterating through the list of layers, and
calling runFeatureTests() on each layer. | public void | runAllIntegrityTests(ILayer[] layers, ValidationResults results, IProgressMonitor monitor) | public void | runFeatureTest(Object testName, ILayer[] layers, ValidationResults results, IProgressMonitor monitor) | public void | runIntegrityTest(Object testName, ILayer[] layers, ValidationResults results, IProgressMonitor monitor) | public void | setArg(TestDTO test, ArgumentDTO arg) | public void | setPluginDTOs(Map<String, PlugInDTO> pluginDTOs) | public void | setTestSuiteDTOs(Map<String, TestSuiteDTO> testSuiteDTOs) | public boolean | testsExist(Object testSuiteKey) Determines if a given testSuite contains any tests or not. | public void | updateFVLookup() | public void | updateIVLookup() |
ValidationProcessor | public ValidationProcessor(File pluginsDir, File testSuiteFile) throws Exception(Code) | | Constructor for the udig ValidationProcessor subclass. The plugins
parameter is required, but the testSuites var may be a null File object
(a blank testSuite will be created).
Parameters: pluginsDir - (directory containing pluginSchema xml files) Parameters: testSuites - (testSuite file or a directory) throws: Exception - |
addValidation | public void addValidation(Validation validation, PlugInDTO plugin, Object testSuiteDTOKey)(Code) | | Adds a testDTO validation to the testSuiteDTO, and calls addValidation
from the superclass.
Parameters: validation - FeatureValidation object Parameters: testSuiteDTOKey - ID object (the key of the testSuiteDTO as referenced intestSuiteDTOs) See Also: org.geotools.validation.ValidationProcessor.addValidation |
createValidation | public Validation createValidation(PlugInDTO dto) throws ValidationException, ClassNotFoundException(Code) | | Creates a new validation test of the correct type when passed the plugInDTO.
Parameters: plugin - throws: ValidationException - throws: ClassNotFoundException - |
getPluginDTOs | public Map getPluginDTOs()(Code) | | |
getPlugins | public Set getPlugins()(Code) | | Returns a Set (HashSet) of plugins (validation tests) available.
|
getTests | public Map getTests()(Code) | | Returns a complete list of available tests (all testSuites are merged)
Map of tests |
getTests | public Object[] getTests(Object plugin)(Code) | | Returns an array of tests relevant to the plugin
Parameters: plugin - |
getUniqueName | public String getUniqueName(Map allItems, String labelPrefix)(Code) | | Returns a unique name for an automatically generated Test (Test1, Test2,
etc), or where labelPrefix is typically "Test"
Parameters: allItems - Parameters: labelPrefix - |
moveTests | public TestSuiteDTO moveTests(TestSuiteDTO suite, Map<String, TestDTO> tests, boolean allowDupes)(Code) | | Places a Map of tests one-by-one into a TestSuiteDTO. If an equal test
already exists in the testSuite, it is ignored.
Parameters: suite - Parameters: tests - Parameters: allDupes - |
removeValidation | public void removeValidation(TestDTO test)(Code) | | Removes a validation from its testSuiteDTO and from the FV/IV Lookups
Parameters: validation - |
runAllFeatureTests | public void runAllFeatureTests(ILayer[] layers, ValidationResults results, IProgressMonitor monitor) throws Exception(Code) | | Runs all feature tests by iterating through the list of layers, and
calling runFeatureTests() on each layer.
See Also: org.geotools.validation.ValidationProcessor See Also: runFeatureTests() Parameters: layers - Parameters: results - Parameters: monitor - throws: Exception - |
runAllIntegrityTests | public void runAllIntegrityTests(ILayer[] layers, ValidationResults results, IProgressMonitor monitor) throws Exception(Code) | | Runs all integrity tests (prepares and calls runIntegrityTests)
See Also: org.geotools.validation.ValidationProcessor See Also: runIntegrityTests() Parameters: layers - Parameters: results - Parameters: monitor - throws: Exception - |
runFeatureTest | public void runFeatureTest(Object testName, ILayer[] layers, ValidationResults results, IProgressMonitor monitor) throws Exception(Code) | | Runs a single feature validation test
Parameters: testName - Parameters: layers - Parameters: results - Parameters: monitor - throws: Exception - |
runIntegrityTest | public void runIntegrityTest(Object testName, ILayer[] layers, ValidationResults results, IProgressMonitor monitor) throws Exception(Code) | | Runs a single integrity validation test
Parameters: testName - Parameters: layers - Parameters: results - Parameters: monitor - throws: Exception - |
setPluginDTOs | public void setPluginDTOs(Map<String, PlugInDTO> pluginDTOs)(Code) | | |
setTestSuiteDTOs | public void setTestSuiteDTOs(Map<String, TestSuiteDTO> testSuiteDTOs)(Code) | | |
testsExist | public boolean testsExist(Object testSuiteKey)(Code) | | Determines if a given testSuite contains any tests or not.
Parameters: testSuiteKey - |
updateFVLookup | public void updateFVLookup()(Code) | | Regenerates the FV Lookup Map based on the contents of the testSuite
|
updateIVLookup | public void updateIVLookup()(Code) | | |
|
|