Class ValidationError

java.lang.Object
com.vividsolutions.jump.qa.ValidationError
Direct Known Subclasses:
BasicTopologyValidationError

public class ValidationError extends Object
An error with a Feature, found by Validator.
See Also:
  • Constructor Details

    • ValidationError

      public ValidationError(ValidationErrorType type, Feature feature)
      Creates a ValidationError with location unspecified.
      Parameters:
      type - the kind of error found
      feature - the feature with the error
    • ValidationError

      public ValidationError(ValidationErrorType type, Feature feature, org.locationtech.jts.geom.Coordinate location)
      Creates a ValidationError.
      Parameters:
      type - the kind of error found
      feature - the feature with the error
      location - a point near the error
    • ValidationError

      public ValidationError(ValidationErrorType type, Feature feature, org.locationtech.jts.geom.Geometry badPart)
      Creates a ValidationError with location unspecified.
      Parameters:
      type - the kind of error found
      feature - the feature with the error
      badPart - the part of the feature having the error
  • Method Details

    • getType

      public ValidationErrorType getType()
      Returns the kind of error found.
      Returns:
      the kind of error found
    • getMessage

      public String getMessage()
      Returns a description of the error.
      Returns:
      a description of the error
    • getFeature

      public Feature getFeature()
      Returns the feature with the error.
      Returns:
      the feature with the error
    • getLocation

      public org.locationtech.jts.geom.Coordinate getLocation()
      Returns a point near the error.
      Returns:
      a point near the error