KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > components > configuration > validator > NoopConfigurationValidator


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix.components.configuration.validator;
9
10 import org.apache.avalon.framework.configuration.Configuration;
11 import org.apache.avalon.framework.configuration.ConfigurationException;
12 import org.apache.avalon.phoenix.interfaces.ConfigurationValidator;
13 import org.apache.avalon.phoenix.interfaces.ConfigurationValidatorMBean;
14
15 /**
16  * A ConfigurationValidator that always says everything is okay
17  *
18  * @author <a HREF="mailto:proyal@apache.org">Peter Royal</a>
19  */

20 public class NoopConfigurationValidator
21     implements ConfigurationValidator, ConfigurationValidatorMBean
22 {
23     public void addSchema( String JavaDoc application, String JavaDoc block, String JavaDoc schemaType, String JavaDoc url )
24         throws ConfigurationException
25     {
26     }
27
28     public void removeSchema( String JavaDoc application, String JavaDoc block )
29     {
30     }
31
32     public boolean isValid( String JavaDoc application, String JavaDoc block, Configuration configuration )
33         throws ConfigurationException
34     {
35         return true;
36     }
37
38     public boolean isFeasiblyValid( String JavaDoc application, String JavaDoc block, Configuration configuration )
39         throws ConfigurationException
40     {
41         return true;
42     }
43
44     public String JavaDoc getSchema( String JavaDoc application, String JavaDoc block )
45     {
46         return null;
47     }
48
49     public String JavaDoc getSchemaType( String JavaDoc application, String JavaDoc block )
50     {
51         return null;
52     }
53
54     public boolean isValid( String JavaDoc application, String JavaDoc block, String JavaDoc configurationXml )
55         throws ConfigurationException
56     {
57         return true;
58     }
59 }
60
Popular Tags