code: @Api
  	public GeometryValidationState getState() {
  		if (violations.isEmpty()) {
  			return GeometryValidationState.VALID;
  		} else {
  			return violations.get(0).getState();
  		}
  	}
docs: Get the validation state of the geometry. We take the state of the first violation encountered.
  
  @return the invalid state or {@link GeometryValidationState.VALID} if there are no violations.