public class DefaultValidationStatus extends java.lang.Object implements Geometry.ValidationStatus
CURRUPTED, DISCONNECTED_INTERIOR, DUPLICATE_RINGS, HOLE_OUTSIDE_SHELL, INVALID_COORDINATE, NESTED_HOLES, NESTED_SHELLS, RING_NOT_CLOSED, RING_SELF_INTERSECTION, SELF_INTERSECTION, TOO_FEW_POINTS, UNKNOW, VALID
Constructor and Description |
---|
DefaultValidationStatus() |
DefaultValidationStatus(int code,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Return a human readable message explaining the cause of the problem.
|
Point |
getProblemLocation()
Return the nearest point to the problem when validate the geometry.
|
int |
getStatusCode()
Return the status code results of validate the geometry.
|
boolean |
isValid()
True if the geoemtry are valid.
|
void |
setMesage(java.lang.String message) |
void |
setStatusCode(int statusCode) |
void |
setValidationError(TopologyValidationError validationError) |
public DefaultValidationStatus()
public DefaultValidationStatus(int code, java.lang.String message)
public void setMesage(java.lang.String message)
public void setStatusCode(int statusCode)
public void setValidationError(TopologyValidationError validationError)
public boolean isValid()
Geometry.ValidationStatus
isValid
in interface Geometry.ValidationStatus
public int getStatusCode()
Geometry.ValidationStatus
getStatusCode
in interface Geometry.ValidationStatus
public Point getProblemLocation()
Geometry.ValidationStatus
getProblemLocation
in interface Geometry.ValidationStatus
public java.lang.String getMessage()
Geometry.ValidationStatus
getMessage
in interface Geometry.ValidationStatus