Java Doc for ValidationProcessor.java in  » GIS » udig-1.1 » net » refractions » udig » validation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » udig 1.1 » net.refractions.udig.validation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final  ObjectANYTYPENAME
    

Constructor Summary
public  ValidationProcessor(File pluginsDir, File testSuiteFile)
     Constructor for the udig ValidationProcessor subclass.

Method Summary
public  voidaddValidation(Validation validation, PlugInDTO plugin, Object testSuiteDTOKey)
     Adds a testDTO validation to the testSuiteDTO, and calls addValidation from the superclass.
public  ValidationcreateValidation(PlugInDTO dto)
     Creates a new validation test of the correct type when passed the plugInDTO.
public  MapgetPluginDTOs()
    
public  SetgetPlugins()
     Returns a Set (HashSet) of plugins (validation tests) available.
public  Map<String, TestSuiteDTO>getTestSuiteDTOs()
    
public  MapgetTests()
    
public  Object[]getTests(Object plugin)
    
public  StringgetUniqueName(Map allItems, String labelPrefix)
    
public  TestSuiteDTOmoveTests(TestSuiteDTO suite, Map<String, TestDTO> tests, boolean allowDupes)
     Places a Map of tests one-by-one into a TestSuiteDTO.
public  voidremoveValidation(TestDTO test)
    
public  booleanrenameValidation(String oldKey, String newKey, Object testSuiteDTOKey)
    
public  voidrunAllFeatureTests(ILayer[] layers, ValidationResults results, IProgressMonitor monitor)
     Runs all feature tests by iterating through the list of layers, and calling runFeatureTests() on each layer.
public  voidrunAllIntegrityTests(ILayer[] layers, ValidationResults results, IProgressMonitor monitor)
    
public  voidrunFeatureTest(Object testName, ILayer[] layers, ValidationResults results, IProgressMonitor monitor)
    
public  voidrunIntegrityTest(Object testName, ILayer[] layers, ValidationResults results, IProgressMonitor monitor)
    
public  voidsetArg(TestDTO test, ArgumentDTO arg)
    
public  voidsetPluginDTOs(Map<String, PlugInDTO> pluginDTOs)
    
public  voidsetTestSuiteDTOs(Map<String, TestSuiteDTO> testSuiteDTOs)
    
public  booleantestsExist(Object testSuiteKey)
     Determines if a given testSuite contains any tests or not.
public  voidupdateFVLookup()
    
public  voidupdateIVLookup()
    

Field Detail
ANYTYPENAME
final Object ANYTYPENAME(Code)




Constructor Detail
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 -




Method Detail
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.



getTestSuiteDTOs
public Map<String, TestSuiteDTO> getTestSuiteDTOs()(Code)



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 -



renameValidation
public boolean renameValidation(String oldKey, String newKey, Object testSuiteDTOKey)(Code)



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 -



setArg
public void setArg(TestDTO test, ArgumentDTO arg) throws ValidationException, IntrospectionException(Code)



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)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.