01: /*
02: * $Header: /cvsroot/jvalidate/jvalidate-framework/jvalidate/src/main/java/nl/knowlogy/validation/Validatable.java,v 1.3 2007/11/11 14:34:37 roberthofstra Exp $
03: * $Revision: 1.3 $
04: * $Date: 2007/11/11 14:34:37 $
05: *
06: *
07: * Created on Oct 6, 2004
08: *
09: * All right reserved(c) 2004, Knowlogy
10: *
11: * Copyright 2004 - 2005 Knowlogy, the Netherlands. All rights reserved.
12: * All Knowlogy brand and product names are trademarks or registered trademarks
13: * of Knowlogy in the Netherlands and other countries.
14: *
15: * No part of this publication may be reproduced, transmitted, stored in a retrieval system,
16: * or translated into any human or computer language, in any form, or by any means, electronic,
17: * mechanical, magnetic, optical, chemical, manual, or otherwise,
18: * without the prior written permission of the copyright owner, Knowlogy.
19: *
20: */
21: package nl.knowlogy.validation;
22:
23: /**
24: * Interface for objects that are Validatable.
25: *
26: * @author <a href="mailto:robert.hofstra@knowlogy.nl">Robert Hofstra, Knowlogy</a>
27: */
28: public interface Validatable {
29:
30: /**
31: * Validates the object. Validation errors are added to the errors object.
32: *
33: * @param errors container for the validation errors.
34: */
35: void validate(Messages messages);
36:
37: }
|