net.refractions.udig.validation
Class ValidateLineNoSelfOverlapping

java.lang.Object
  extended by net.refractions.udig.validation.ValidateLineNoSelfOverlapping

public class ValidateLineNoSelfOverlapping
extends java.lang.Object

Overrides the FeatureValidationOp abstract class and returns the appropriate validation method for the validation type.

Since:
1.0.1
Author:
chorner

Field Summary
 GenericValidationResults results
           
 
Constructor Summary
ValidateLineNoSelfOverlapping()
           
 
Method Summary
protected  boolean canValidate(FeatureType featureType)
          This method may be overridden for classes which only validate certain featureTypes
protected  Dialog getDialog(Shell shell, FeatureType featureType)
          This method may be overridden for classes which need a dialog for user input
 FeatureValidation getValidator()
           
 void op(Display display, java.lang.Object target, IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

results

public GenericValidationResults results
Constructor Detail

ValidateLineNoSelfOverlapping

public ValidateLineNoSelfOverlapping()
Method Detail

getValidator

public FeatureValidation getValidator()
Returns:
the appropriate Validating Feature Method Class

canValidate

protected boolean canValidate(FeatureType featureType)
This method may be overridden for classes which only validate certain featureTypes

Returns:
boolean

op

public void op(Display display,
               java.lang.Object target,
               IProgressMonitor monitor)
        throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
net.refractions.udig.ui.operations.IOp#op(org.eclipse.swt.widgets.Display, java.lang.Object, org.eclipse.core.runtime.IProgressMonitor)

getDialog

protected Dialog getDialog(Shell shell,
                           FeatureType featureType)
This method may be overridden for classes which need a dialog for user input

Parameters:
shell -
featureType -
Returns:
null