com.vividsolutions.jump.qa
Class ValidationError

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

public class ValidationError
extends java.lang.Object

An error with a Feature, found by Validator.

See Also:
Validator

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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,
                       com.vividsolutions.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,
                       com.vividsolutions.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 Detail

getType

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

Returns:
the kind of error found

getMessage

public java.lang.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 com.vividsolutions.jts.geom.Coordinate getLocation()
Returns a point near the error.

Returns:
a point near the error