com.vividsolutions.jts.noding
Class NodingValidator

java.lang.Object
  extended bycom.vividsolutions.jts.noding.NodingValidator

public class NodingValidator
extends java.lang.Object

Validates that a collection of SegmentStrings is correctly noded. Throws an appropriate exception if an noding error is found.

Version:
1.7

Constructor Summary
NodingValidator(java.util.Collection segStrings)
          Creates a new validator for the given collection of SegmentStrings.
 
Method Summary
 void checkValid()
          Checks whether the supplied segment strings are correctly noded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodingValidator

public NodingValidator(java.util.Collection segStrings)
Creates a new validator for the given collection of SegmentStrings.

Parameters:
segStrings - a collection of SegmentStrings
Method Detail

checkValid

public void checkValid()
Checks whether the supplied segment strings are correctly noded. Throws an exception if they are not.

Throws:
java.lang.RuntimeException - if the SegmentStrings are not correctly noded