KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > woody > validation > impl > AssertValidatorBuilder


1 /*
2  * Copyright 1999-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.cocoon.woody.validation.impl;
17
18 import org.apache.cocoon.woody.datatype.validationruleimpl.AssertValidationRuleBuilder;
19 import org.apache.cocoon.woody.formmodel.WidgetDefinition;
20 import org.apache.cocoon.woody.validation.WidgetValidator;
21 import org.apache.cocoon.woody.validation.WidgetValidatorBuilder;
22 import org.w3c.dom.Element JavaDoc;
23
24 /**
25  * Adapter for {@link org.apache.cocoon.woody.datatype.validationruleimpl.AssertValidationRuleBuilder}
26  *
27  * @author <a HREF="http://www.apache.org/~sylvain/">Sylvain Wallez</a>
28  * @version CVS $Id: AssertValidatorBuilder.java 30932 2004-07-29 17:35:38Z vgritsenko $
29  */

30 public class AssertValidatorBuilder extends AssertValidationRuleBuilder implements WidgetValidatorBuilder {
31
32     public WidgetValidator build(Element JavaDoc validationRuleElement, WidgetDefinition definition) throws Exception JavaDoc {
33         return new ValidationRuleValidator(super.build(validationRuleElement));
34     }
35 }
36
Popular Tags