@ Api public GeometryValidationState getState ( ) { if ( violations . isEmpty ( ) ) { return GeometryValidationState . VALID ; } else { return violations . get ( 0 ) . getState ( ) ; } }
Get the validation state of the geometry . We take the state of the first violation encountered .