KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > custom > isbnvalidator > ValidateISBNTag


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.custom.isbnvalidator;
17
18 import javax.faces.validator.Validator;
19 import javax.faces.webapp.ValidatorTag;
20 import javax.servlet.jsp.JspException JavaDoc;
21
22 import org.apache.myfaces.custom.isbnvalidator.ISBNValidator;
23
24 /**
25  * @author <a HREF="mailto:matzew@apache.org">Matthias We´┐Żendorf</a> (latest modification by $Author: svieujot $)
26  * @version $Revision: 1.2 $ $Date: 2004/11/23 04:59:23 $
27  * $Log: ValidateISBNTag.java,v $
28  * Revision 1.2 2004/11/23 04:59:23 svieujot
29  * Remove "unmappable character for encoding UTF8" warning.
30  *
31  * Revision 1.1 2004/11/20 20:17:05 matzew
32  * added new validator for ISBN codes
33  *
34  */

35 public class ValidateISBNTag extends ValidatorTag{
36     
37     public ValidateISBNTag(){}
38     
39     protected Validator createValidator() throws JspException JavaDoc
40     {
41         setValidatorId(ISBNValidator.VALIDATOR_ID);
42         ISBNValidator validator = (ISBNValidator)super.createValidator();
43         return validator;
44     }
45     
46     public void release()
47     {
48         super.release();
49     }
50
51
52 }
53
Popular Tags