Package org.locationtech.jts.jump.qa
Class ValidationError
- java.lang.Object
-
- org.locationtech.jts.jump.qa.ValidationError
-
- Direct Known Subclasses:
BasicTopologyValidationError
public class ValidationError extends Object
An error with a Feature, found by Validator.- See Also:
Validator
-
-
Constructor Summary
Constructors Constructor Description ValidationError(ValidationErrorType type, Feature feature)
Creates a ValidationError with location unspecified.ValidationError(ValidationErrorType type, Feature feature, org.locationtech.jts.geom.Coordinate location)
Creates a ValidationError.ValidationError(ValidationErrorType type, Feature feature, org.locationtech.jts.geom.Geometry badPart)
Creates a ValidationError with location unspecified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Feature
getFeature()
Returns the feature with the error.org.locationtech.jts.geom.Coordinate
getLocation()
Returns a point near the error.String
getMessage()
Returns a description of the error.ValidationErrorType
getType()
Returns the kind of error found.
-
-
-
Constructor Detail
-
ValidationError
public ValidationError(ValidationErrorType type, Feature feature)
Creates a ValidationError with location unspecified.- Parameters:
type
- the kind of error foundfeature
- 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 foundfeature
- the feature with the errorlocation
- 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 foundfeature
- the feature with the errorbadPart
- the part of the feature having the error
-
-
Method Detail
-
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
-
-