com.vividsolutions.jump.qa
Class ValidationErrorType

java.lang.Object
  extended by com.vividsolutions.jump.qa.ValidationErrorType

public class ValidationErrorType
extends java.lang.Object

The types of validation errors detected by Validator.

See Also:
Validator

Field Summary
static ValidationErrorType BASIC_TOPOLOGY_INVALID
          Basic topology is invalid
static ValidationErrorType EXTERIOR_RING_CCW
          Polygon shell is oriented counter-clockwise
static ValidationErrorType GEOMETRY_CLASS_DISALLOWED
          Geometry class not allowed
static ValidationErrorType INTERIOR_RING_CW
          Polygon hole is oriented clockwise
static ValidationErrorType NONSIMPLE_LINESTRING
          Linestring not simple
static ValidationErrorType POLYGON_HAS_HOLES
          Polygon has holes
static ValidationErrorType REPEATED_CONSECUTIVE_POINTS
          Consecutive points are the same
static ValidationErrorType SMALL_ANGLE
          Contains segments with angle below minimum
static ValidationErrorType SMALL_AREA
          Is/contains polygon with area below minimum
static ValidationErrorType SMALL_SEGMENT
          Contains segment with length below minimum
 
Method Summary
 java.lang.String getMessage()
          Returns a description of the error.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GEOMETRY_CLASS_DISALLOWED

public static final ValidationErrorType GEOMETRY_CLASS_DISALLOWED
Geometry class not allowed


BASIC_TOPOLOGY_INVALID

public static final ValidationErrorType BASIC_TOPOLOGY_INVALID
Basic topology is invalid


EXTERIOR_RING_CCW

public static final ValidationErrorType EXTERIOR_RING_CCW
Polygon shell is oriented counter-clockwise


INTERIOR_RING_CW

public static final ValidationErrorType INTERIOR_RING_CW
Polygon hole is oriented clockwise


NONSIMPLE_LINESTRING

public static final ValidationErrorType NONSIMPLE_LINESTRING
Linestring not simple


SMALL_SEGMENT

public static final ValidationErrorType SMALL_SEGMENT
Contains segment with length below minimum


SMALL_AREA

public static final ValidationErrorType SMALL_AREA
Is/contains polygon with area below minimum


SMALL_ANGLE

public static final ValidationErrorType SMALL_ANGLE
Contains segments with angle below minimum


POLYGON_HAS_HOLES

public static final ValidationErrorType POLYGON_HAS_HOLES
Polygon has holes


REPEATED_CONSECUTIVE_POINTS

public static final ValidationErrorType REPEATED_CONSECUTIVE_POINTS
Consecutive points are the same

Method Detail

getMessage

public java.lang.String getMessage()
Returns a description of the error.

Returns:
a description of the error

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object