001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.commons.vfs2.impl;
018
019import java.util.ArrayList;
020import java.util.List;
021
022/**
023 * This class describes the configuration for a provider.
024 * <p>
025 * Used by digester in StandardFileSystemManager
026 */
027public class ProviderConfiguration {
028    private String className;
029    private final List<String> schemes = new ArrayList<>(10);
030    private final List<String> dependenies = new ArrayList<>(10);
031
032    public ProviderConfiguration() {
033    }
034
035    public String getClassName() {
036        return className;
037    }
038
039    public void setClassName(final String className) {
040        this.className = className;
041    }
042
043    public void setScheme(final String scheme) {
044        schemes.add(scheme);
045    }
046
047    public List<String> getSchemes() {
048        return schemes;
049    }
050
051    public void setDependency(final String dependency) {
052        dependenies.add(dependency);
053    }
054
055    public List<String> getDependencies() {
056        return dependenies;
057    }
058
059    public boolean isDefault() {
060        return false;
061    }
062}