|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webstersmalley.chessweb.model.MoveValidator
public final class MoveValidator
Validator class for a new move.
| Constructor Summary | |
|---|---|
MoveValidator()
|
|
| Method Summary | |
|---|---|
Board |
getBoard()
|
void |
setBoard(Board board)
|
boolean |
supports(java.lang.Class clazz)
Checks which classes are supported by this validator. |
void |
validate(java.lang.Object command,
org.springframework.validation.Errors errors)
Checks whether the move is valid or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MoveValidator()
| Method Detail |
|---|
public Board getBoard()
public void setBoard(Board board)
board - The board to set.public boolean supports(java.lang.Class clazz)
supports in interface org.springframework.validation.Validatorclazz - the class to test.
public void validate(java.lang.Object command,
org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorcommand - the command object.errors - the collection of errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||