public class DefaultValidationStatus extends 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,
String message) |
Modifier and Type | Method and Description |
---|---|
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(String message) |
void |
setStatusCode(int statusCode) |
void |
setValidationError(TopologyValidationError validationError) |
public DefaultValidationStatus()
public DefaultValidationStatus(int code, String message)
public void setMesage(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 String getMessage()
Geometry.ValidationStatus
getMessage
in interface Geometry.ValidationStatus