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
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. |
TRUE
static final IEditValidator TRUE
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 stateevent
- 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.