com.vividsolutions.jump.qa
Class BasicTopologyValidationError

java.lang.Object
  extended by com.vividsolutions.jump.qa.ValidationError
      extended by com.vividsolutions.jump.qa.BasicTopologyValidationError

public class BasicTopologyValidationError
extends ValidationError

Adapts a JTS TopologyValidationError to ValidationError. JTS TopologyValidationErrors are created during basic JTS validation, performed by Validator.

See Also:
Validator

Constructor Summary
BasicTopologyValidationError(com.vividsolutions.jts.operation.valid.TopologyValidationError basicTopologyError, Feature feature)
          Creates a BasicTopologyValidationError that wraps a JTS TopologyValidationError.
 
Method Summary
 com.vividsolutions.jts.geom.Coordinate getLocation()
          Returns a point near the error.
 java.lang.String getMessage()
          Returns a description of the error.
 
Methods inherited from class com.vividsolutions.jump.qa.ValidationError
getFeature, getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTopologyValidationError

public BasicTopologyValidationError(com.vividsolutions.jts.operation.valid.TopologyValidationError basicTopologyError,
                                    Feature feature)
Creates a BasicTopologyValidationError that wraps a JTS TopologyValidationError.

Parameters:
basicTopologyError - the JTS error to wrap
feature - the feature with the error
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from class: ValidationError
Returns a description of the error.

Overrides:
getMessage in class ValidationError
Returns:
a description of the error

getLocation

public com.vividsolutions.jts.geom.Coordinate getLocation()
Description copied from class: ValidationError
Returns a point near the error.

Overrides:
getLocation in class ValidationError
Returns:
a point near the error