public class ValidationError
extends java.lang.Object
Validator
Constructor and Description |
---|
ValidationError(ValidationErrorType type,
Feature feature)
Creates a ValidationError with location unspecified.
|
ValidationError(ValidationErrorType type,
Feature feature,
com.vividsolutions.jts.geom.Coordinate location)
Creates a ValidationError.
|
ValidationError(ValidationErrorType type,
Feature feature,
com.vividsolutions.jts.geom.Geometry badPart)
Creates a ValidationError with location unspecified.
|
Modifier and Type | Method and Description |
---|---|
Feature |
getFeature()
Returns the feature with the error.
|
com.vividsolutions.jts.geom.Coordinate |
getLocation()
Returns a point near the error.
|
java.lang.String |
getMessage()
Returns a description of the error.
|
ValidationErrorType |
getType()
Returns the kind of error found.
|
public ValidationError(ValidationErrorType type, Feature feature)
type
- the kind of error foundfeature
- the feature with the errorpublic ValidationError(ValidationErrorType type, Feature feature, com.vividsolutions.jts.geom.Coordinate location)
type
- the kind of error foundfeature
- the feature with the errorlocation
- a point near the errorpublic ValidationError(ValidationErrorType type, Feature feature, com.vividsolutions.jts.geom.Geometry badPart)
type
- the kind of error foundfeature
- the feature with the errorbadPart
- the part of the feature having the errorpublic ValidationErrorType getType()
public java.lang.String getMessage()
public Feature getFeature()
public com.vividsolutions.jts.geom.Coordinate getLocation()