KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > vfs > impl > ProviderConfiguration


1 /*
2  * Copyright 2002-2005 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.commons.vfs.impl;
17
18 import java.util.ArrayList JavaDoc;
19 import java.util.List JavaDoc;
20
21 /**
22  * This class describes the configuration for a provider.<br>
23  * Used by digester in StandardFileSystemManager
24  *
25  * @author <a HREF="mailto:imario@apache.org">Mario Ivankovits</a>
26  */

27 public class ProviderConfiguration
28 {
29     private String JavaDoc className;
30     private List JavaDoc schemes = new ArrayList JavaDoc(10);
31     private List JavaDoc dependenies = new ArrayList JavaDoc(10);
32
33     public ProviderConfiguration()
34     {
35     }
36
37     public String JavaDoc getClassName()
38     {
39         return className;
40     }
41
42     public void setClassName(String JavaDoc className)
43     {
44         this.className = className;
45     }
46
47     public void setScheme(String JavaDoc scheme)
48     {
49         schemes.add(scheme);
50     }
51
52     public List JavaDoc getSchemes()
53     {
54         return schemes;
55     }
56
57     public void setDependency(String JavaDoc dependency)
58     {
59         dependenies.add(dependency);
60     }
61
62     public List JavaDoc getDependencies()
63     {
64         return dependenies;
65     }
66
67     public boolean isDefault()
68     {
69         return false;
70     }
71 }
72
Popular Tags