org.deegree.geometry.validation
Enum ValidationEvent

java.lang.Object
  extended by java.lang.Enum<ValidationEvent>
      extended by org.deegree.geometry.validation.ValidationEvent
All Implemented Interfaces:
Serializable, Comparable<ValidationEvent>

public enum ValidationEvent
extends Enum<ValidationEvent>

Discriminates geometry validation events.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
GeometryValidator, GeometryValidationEventHandler

Enum Constant Summary
CURVE_ACUTE_ANGLE
          Curve course contains an angle that is considered to be too acute.
CURVE_DISCONTINUITY
          End point of a segment n does not coincide with the start point of segment n+1.
CURVE_SELF_INTERSECTION
          Curve intersects itself.
EXTERIOR_RING_CCW
          Orientation of an exterior polygon ring (i.e. the shell) does not follow counter-clockwise order.
EXTERIOR_RING_INTERSECTS_INTERIOR
          An interior ring intersects the shell.
EXTERIOR_RING_TOUCHES_INTERIOR
          An interior ring touches the shell.
EXTERIOR_RING_WITHIN_INTERIOR
          The exterior ring lies inside an interior ring.
INTERIOR_RING_CW
          Orientation of an interior polygon ring (i.e. a hole) does not follow clockwise order.
INTERIOR_RINGS_INTERSECTS
          Two interior rings intersect each other.
INTERIOR_RINGS_TOUCH
          Two interior rings touch each other.
INTERIOR_RINGS_WITHIN
          An interior ring lies inside another.
RING_NOT_CLOSED
          End point does not coincide with the start point.
RING_SELF_INTERSECTION
          Ring intersects itself.
SEGMENT_DUPLICATE_POINTS
          Segment contains identical successive points.
 
Method Summary
static ValidationEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValidationEvent[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SEGMENT_DUPLICATE_POINTS

public static final ValidationEvent SEGMENT_DUPLICATE_POINTS
Segment contains identical successive points.


CURVE_DISCONTINUITY

public static final ValidationEvent CURVE_DISCONTINUITY
End point of a segment n does not coincide with the start point of segment n+1.


CURVE_SELF_INTERSECTION

public static final ValidationEvent CURVE_SELF_INTERSECTION
Curve intersects itself.


CURVE_ACUTE_ANGLE

public static final ValidationEvent CURVE_ACUTE_ANGLE
Curve course contains an angle that is considered to be too acute.


RING_NOT_CLOSED

public static final ValidationEvent RING_NOT_CLOSED
End point does not coincide with the start point.


RING_SELF_INTERSECTION

public static final ValidationEvent RING_SELF_INTERSECTION
Ring intersects itself.


EXTERIOR_RING_CCW

public static final ValidationEvent EXTERIOR_RING_CCW
Orientation of an exterior polygon ring (i.e. the shell) does not follow counter-clockwise order.


INTERIOR_RING_CW

public static final ValidationEvent INTERIOR_RING_CW
Orientation of an interior polygon ring (i.e. a hole) does not follow clockwise order.


INTERIOR_RINGS_TOUCH

public static final ValidationEvent INTERIOR_RINGS_TOUCH
Two interior rings touch each other.


INTERIOR_RINGS_INTERSECTS

public static final ValidationEvent INTERIOR_RINGS_INTERSECTS
Two interior rings intersect each other.


INTERIOR_RINGS_WITHIN

public static final ValidationEvent INTERIOR_RINGS_WITHIN
An interior ring lies inside another.


EXTERIOR_RING_TOUCHES_INTERIOR

public static final ValidationEvent EXTERIOR_RING_TOUCHES_INTERIOR
An interior ring touches the shell.


EXTERIOR_RING_INTERSECTS_INTERIOR

public static final ValidationEvent EXTERIOR_RING_INTERSECTS_INTERIOR
An interior ring intersects the shell.


EXTERIOR_RING_WITHIN_INTERIOR

public static final ValidationEvent EXTERIOR_RING_WITHIN_INTERIOR
The exterior ring lies inside an interior ring.

Method Detail

values

public static ValidationEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ValidationEvent c : ValidationEvent.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ValidationEvent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.