net.refractions.udig.tools.edit.validator
Class LegalShapeValidator

java.lang.Object
  extended by net.refractions.udig.tools.edit.validator.LegalShapeValidator
All Implemented Interfaces:
IEditValidator

public class LegalShapeValidator
extends java.lang.Object
implements IEditValidator

Checks for:

Since:
1.1.0
Author:
Jesse

Field Summary
 
Fields inherited from interface net.refractions.udig.tools.edit.behaviour.IEditValidator
TRUE
 
Constructor Summary
LegalShapeValidator(boolean restrictToChangedGeoms)
          New instance
 
Method Summary
 java.lang.String isValid(EditToolHandler handler, MapMouseEvent event, EventType type)
          Returns null if the validator considers the state to be "legal" for the new event or a string which is the human readable message describing the problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegalShapeValidator

public LegalShapeValidator(boolean restrictToChangedGeoms)
New instance

Parameters:
restrictToChangedGeoms - if true unchanged geoms will not be validated.
Method Detail

isValid

public java.lang.String isValid(EditToolHandler handler,
                                MapMouseEvent event,
                                EventType type)
Description copied from interface: IEditValidator
Returns null if the validator considers the state to be "legal" for the new event or a string which is the human readable message describing the problem.

Specified by:
isValid in interface IEditValidator
Parameters:
handler - the handler to use for obtaining the state
event - the event that just occurred.
type - they type of event
Returns:
null if the validator considers the state to be "legal" for the new event or a string which is the human readable message describing the problem.