01: /*
02: * $Header: /cvsroot/jvalidate/jvalidate-framework/jvalidate/src/test/java/nl/knowlogy/validation/test/NederlandsAdress.java,v 1.3 2007/04/07 12:28:01 roberthofstra Exp $
03: * $Revision: 1.3 $
04: * $Date: 2007/04/07 12:28:01 $
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.test;
22:
23: /**
24: *
25: * @validate.class
26: *
27: * @author Robert
28: */
29: public class NederlandsAdress extends Address {
30:
31: private String zipcode;
32:
33: /**
34: * @return Returns the zipcode.
35: */
36: public String getZipcode() {
37: return zipcode;
38: }
39:
40: /**
41: * @validate.property
42: * required="true"
43: * minLength="6"
44: * maxLength="6"
45: * regex="^[1-9]\\d{3}[- ]?[a-zA-Z]{2}$"
46: *
47: * @param zipcode The zipcode to set.
48: */
49: public void setZipcode(String zipcode) {
50: this.zipcode = zipcode;
51: }
52: }
|