net.refractions.udig.validation
Class ValidateGeometry

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

public class ValidateGeometry
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
ValidateGeometry()
           
 
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

ValidateGeometry

public ValidateGeometry()
Method Detail

getValidator

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

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

canValidate

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

Parameters:
featureType -
Returns:
boolean