net.refractions.udig.tools.edit.behaviour
Interface IEditValidator

All Known Implementing Classes:
LegalShapeValidator, PolygonCreationValidator, ValidHoleValidator

public interface IEditValidator

A very general validator strategy that essentially returns true if the current state is considered to be legal by the instance of the validator.

Since:
1.1.0
Author:
Jesse

Field Summary
static IEditValidator TRUE
           
 
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.
 

Field Detail

TRUE

static final IEditValidator TRUE
Method Detail

isValid

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.

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.