Java Doc for Validator.java in  » GIS » openjump » com » vividsolutions » jump » qa » 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 » openjump » com.vividsolutions.jump.qa 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.vividsolutions.jump.qa.Validator

Validator
public class Validator (Code)
Performs basic JTS validation, and additional validation like checking polygon orientation.



Constructor Summary
public  Validator()
    

Method Summary
protected  voidaddIfNotNull(Object item, Collection collection)
    
public  voidsetCheckingBasicTopology(boolean checkingBasicTopology)
    
public  voidsetCheckingLineStringsSimple(boolean checkingLineStringsSimple)
    
public  voidsetCheckingMinAngle(boolean checkingMinAngle)
     Sets whether minimum angle should be checked.
public  voidsetCheckingMinPolygonArea(boolean checkingMinPolygonArea)
     Sets whether minimum polygon area should be checked.
public  voidsetCheckingMinSegmentLength(boolean checkingMinSegmentLength)
     Sets whether minimum segment length should be checked.
public  voidsetCheckingNoHoles(boolean checkingNoHoles)
    
public  voidsetCheckingNoRepeatedConsecutivePoints(boolean checkingNoRepeatedConsecutivePoints)
    
public  voidsetCheckingPolygonOrientation(boolean checkingPolygonOrientation)
    
public  voidsetDisallowedGeometryClasses(Collection disallowedGeometryClasses)
     Sets the Geometry classes that are not allowed in the dataset that will be validated.
public  voidsetMinAngle(double minAngle)
     Sets the angle below which the minimum-angle check will raise a validation error.
public  voidsetMinPolygonArea(double minPolygonArea)
     Sets the area below which the minimum-polygon-area check will raise a validation error.
public  voidsetMinSegmentLength(double minSegmentLength)
     Sets the segment length below which the minimum-segment-length check will raise a validation error.
public  Listvalidate(Collection features, TaskMonitor monitor)
     Checks a collection of features.
protected  voidvalidate(Feature feature, List validationErrors)
     Checks a feature.
protected  ValidationErrorvalidateBasicTopology(Feature feature)
    
protected  ValidationErrorvalidateGeometryClass(Feature feature)
    
protected  ValidationErrorvalidateLineStringsSimple(Feature feature)
    
protected  ValidationErrorvalidateMinAngle(Feature feature)
    
protected  ValidationErrorvalidateMinPolygonArea(Feature feature)
    
protected  ValidationErrorvalidateMinSegmentLength(Feature feature)
    
protected  ValidationErrorvalidateNoHoles(Feature feature)
    
protected  ValidationErrorvalidateNoRepeatedConsecutivePoints(Feature feature)
    
protected  ValidationErrorvalidatePolygonOrientation(Feature feature)
    


Constructor Detail
Validator
public Validator()(Code)




Method Detail
addIfNotNull
protected void addIfNotNull(Object item, Collection collection)(Code)



setCheckingBasicTopology
public void setCheckingBasicTopology(boolean checkingBasicTopology)(Code)
Sets whether basic JTS validation should be performed
Parameters:
  checkingBasicTopology - whether basic JTS validation should be performed



setCheckingLineStringsSimple
public void setCheckingLineStringsSimple(boolean checkingLineStringsSimple)(Code)
Sets whether to enforce the constraint that LineStrings must be simple
Parameters:
  checkingLineStringsSimple - whether to enforce the constraint thatLineStrings must be simple



setCheckingMinAngle
public void setCheckingMinAngle(boolean checkingMinAngle)(Code)
Sets whether minimum angle should be checked.
Parameters:
  checkingMinAngle - whether to enforce the constraint thatangle should be no less than the minimum
See Also:   Validator.setMinAngle(double)



setCheckingMinPolygonArea
public void setCheckingMinPolygonArea(boolean checkingMinPolygonArea)(Code)
Sets whether minimum polygon area should be checked.
Parameters:
  checkingMinPolygonArea - whether to enforce the constraint thatarea should be no less than the minimum, for single polygons and polygonelements of GeometryCollections (including MultiPolygons)
See Also:   Validator.setMinPolygonArea(double)



setCheckingMinSegmentLength
public void setCheckingMinSegmentLength(boolean checkingMinSegmentLength)(Code)
Sets whether minimum segment length should be checked.
Parameters:
  checkingMinSegmentLength - whether to enforce the constraint thatsegment length should be no less than the minimum
See Also:   Validator.setMinSegmentLength(double)



setCheckingNoHoles
public void setCheckingNoHoles(boolean checkingNoHoles)(Code)
Sets whether polygons are not allowed to have holes
Parameters:
  checkingNoHoles - whether polygons are not allowed to have holes



setCheckingNoRepeatedConsecutivePoints
public void setCheckingNoRepeatedConsecutivePoints(boolean checkingNoRepeatedConsecutivePoints)(Code)
Sets whether consecutive points are not allowed to be the same
Parameters:
  checkingNoRepeatedConsecutivePoints - whether consecutive points arenot allowed to be the same



setCheckingPolygonOrientation
public void setCheckingPolygonOrientation(boolean checkingPolygonOrientation)(Code)
Sets whether polygon orientation should be checked
Parameters:
  checkingPolygonOrientation - whether to enforce the constraint thatpolygon shells should be oriented clockwise and holes should be orientedcounterclockwise



setDisallowedGeometryClasses
public void setDisallowedGeometryClasses(Collection disallowedGeometryClasses)(Code)
Sets the Geometry classes that are not allowed in the dataset that will be validated.
Parameters:
  disallowedGeometryClasses - Geometry classes (Polygon.class, forexample) that are not allowed



setMinAngle
public void setMinAngle(double minAngle)(Code)
Sets the angle below which the minimum-angle check will raise a validation error.
Parameters:
  minAngle - the threshold used by the minimum-angle check, in degrees
See Also:   Validator.setCheckingMinAngle(boolean)



setMinPolygonArea
public void setMinPolygonArea(double minPolygonArea)(Code)
Sets the area below which the minimum-polygon-area check will raise a validation error.
Parameters:
  minPolygonArea - the threshould used by the minimum-polygon-area check
See Also:   Validator.setCheckingMinPolygonArea(boolean)



setMinSegmentLength
public void setMinSegmentLength(double minSegmentLength)(Code)
Sets the segment length below which the minimum-segment-length check will raise a validation error.
Parameters:
  minSegmentLength - the threshold used by the minimum-segment-lengthcheck
See Also:   Validator.setCheckingMinSegmentLength(boolean)



validate
public List validate(Collection features, TaskMonitor monitor)(Code)
Checks a collection of features.
Parameters:
  features - the Feature's to validate a List of ValidationErrors; if all features are valid, the listwill be empty



validate
protected void validate(Feature feature, List validationErrors)(Code)
Checks a feature.
Parameters:
  feature - the Feature to validate
Parameters:
  validationErrors - a List of ValidationError's to add to if the featureis not valid



validateBasicTopology
protected ValidationError validateBasicTopology(Feature feature)(Code)



validateGeometryClass
protected ValidationError validateGeometryClass(Feature feature)(Code)



validateLineStringsSimple
protected ValidationError validateLineStringsSimple(Feature feature)(Code)



validateMinAngle
protected ValidationError validateMinAngle(Feature feature)(Code)



validateMinPolygonArea
protected ValidationError validateMinPolygonArea(Feature feature)(Code)



validateMinSegmentLength
protected ValidationError validateMinSegmentLength(Feature feature)(Code)



validateNoHoles
protected ValidationError validateNoHoles(Feature feature)(Code)



validateNoRepeatedConsecutivePoints
protected ValidationError validateNoRepeatedConsecutivePoints(Feature feature)(Code)



validatePolygonOrientation
protected ValidationError validatePolygonOrientation(Feature feature)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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