Class ValidationError

    • 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,
                               org.locationtech.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,
                               org.locationtech.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 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