KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > modules > input > NullInputModule


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
17 package org.apache.cocoon.components.modules.input;
18
19 import org.apache.avalon.framework.configuration.Configuration;
20 import org.apache.avalon.framework.configuration.ConfigurationException;
21 import org.apache.avalon.framework.thread.ThreadSafe;
22
23 import java.util.Iterator JavaDoc;
24 import java.util.Map JavaDoc;
25
26 /**
27  * NullInputModule returns a null object. Use this if you want to
28  * explicitly forbid a parameter to be filled. E.g. a database column
29  * shall be filled with a default value, your forms never contain that
30  * parameter but you don't want anyone to provide this parameter
31  * manually.
32  *
33  * @author <a HREF="mailto:haul@apache.org">Christian Haul</a>
34  * @version CVS $Id: NullInputModule.java 30932 2004-07-29 17:35:38Z vgritsenko $
35  */

36 public class NullInputModule extends AbstractInputModule implements ThreadSafe {
37
38     public Object JavaDoc getAttribute( String JavaDoc name, Configuration modeConf, Map JavaDoc objectModel ) throws ConfigurationException {
39         
40         return null;
41     }
42
43
44     public Iterator JavaDoc getAttributeNames( Configuration modeConf, Map JavaDoc objectModel ) throws ConfigurationException {
45
46         return null;
47     }
48
49
50     public Object JavaDoc[] getAttributeValues( String JavaDoc name, Configuration modeConf, Map JavaDoc objectModel )
51         throws ConfigurationException {
52
53         return null;
54             
55     }
56
57 }
58
Popular Tags