01: /*
02: * $Header: /cvsroot/jvalidate/jvalidate-framework/jvalidate/src/main/java/nl/knowlogy/validation/CustomValidator.java,v 1.6 2007/11/13 15:35:45 roberthofstra Exp $
03: * $Revision: 1.6 $
04: * $Date: 2007/11/13 15:35:45 $
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: import nl.knowlogy.validation.validators.CustomPropertyValidator;
24:
25: /**
26: * <p>
27: * Interface for building custom validators. A custom validator can validate a value and can
28: * be used by a Custom validators can be used by a CustomPropertyValidator.
29: * </p>
30: * <p>Note there is a difference between a <tt>PropertyValidation</tt>, which is a combination of property and
31: * validation and a <tt>CustomValidator</tt>.
32: *
33: * @see CustomPropertyValidator
34: *
35: * @author <a href="mailto:robert.hofstra@knowlogy.nl">Robert Hofstra, Knowlogy</a>
36: *
37: */
38: public interface CustomValidator {
39:
40: boolean isValid(Object value);
41: }
|