Class ValidationError
java.lang.Object
com.vividsolutions.jump.qa.ValidationError
- Direct Known Subclasses:
BasicTopologyValidationError
-
Constructor Summary
ConstructorsConstructorDescriptionValidationError(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
Modifier and TypeMethodDescriptionReturns the feature with the error.org.locationtech.jts.geom.CoordinateReturns a point near the error.Returns a description of the error.getType()Returns the kind of error found.
-
Constructor Details
-
ValidationError
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 Details
-
getType
Returns the kind of error found.- Returns:
- the kind of error found
-
getMessage
-
getFeature
-
getLocation
public org.locationtech.jts.geom.Coordinate getLocation()Returns a point near the error.- Returns:
- a point near the error
-