//# 0 errors, 60 messages
//#
/*
    //#RuntimeConfigDefs.java:1:1: class: org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs
    //#RuntimeConfigDefs.java:1:1: method: org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init
* Licensed to the Apache Software Foundation (ASF) under one or more
*  contributor license agreements.  The ASF licenses this file to You
* under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.  For additional information regarding
* copyright in this work, please see the NOTICE file in the top level
* directory of this distribution.
*/
/*
 * RuntimeConfigDefs.java
 *
 * Created on June 4, 2005, 1:06 PM
 */

package org.apache.roller.weblogger.config.runtime;

import java.util.ArrayList;
import java.util.List;


/**
 * Represents the collection of all ConfigDefs.
 *
 * @author Allen Gilliland
 */
public class RuntimeConfigDefs {
    
    private List configDefs = null;
    
    
    public RuntimeConfigDefs() {
    //#RuntimeConfigDefs.java:40: method: void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()
    //#input(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()): this
    //#output(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()): new ArrayList(RuntimeConfigDefs#1) num objects
    //#output(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()): this.configDefs
    //#new obj(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()): new ArrayList(RuntimeConfigDefs#1)
    //#post(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()): this.configDefs == &new ArrayList(RuntimeConfigDefs#1)
    //#post(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()): new ArrayList(RuntimeConfigDefs#1) num objects == 1
        this.configDefs = new ArrayList();
    }
    //#RuntimeConfigDefs.java:42: end of method: void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs()

    public RuntimeConfigDefs(List configs) {
    //#RuntimeConfigDefs.java:44: method: void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)
    //#input(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)): configs
    //#input(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)): this
    //#output(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)): this.configDefs
    //#post(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)): this.configDefs == configs
    //#post(void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)): init'ed(this.configDefs)
        this.configDefs = configs;
    }
    //#RuntimeConfigDefs.java:46: end of method: void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs(List)
    
    
    public boolean addConfigDef(ConfigDef config) {
        return this.configDefs.add(config);
    //#RuntimeConfigDefs.java:50: method: bool org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.addConfigDef(ConfigDef)
    //#input(bool addConfigDef(ConfigDef)): config
    //#input(bool addConfigDef(ConfigDef)): this
    //#input(bool addConfigDef(ConfigDef)): this.configDefs
    //#output(bool addConfigDef(ConfigDef)): return_value
    //#pre[3] (bool addConfigDef(ConfigDef)): this.configDefs != null
    //#post(bool addConfigDef(ConfigDef)): init'ed(return_value)
    //#RuntimeConfigDefs.java:50: end of method: bool org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.addConfigDef(ConfigDef)
    }
    
    public boolean removeConfigDef(ConfigDef config) {
        return this.configDefs.remove(config);
    //#RuntimeConfigDefs.java:54: method: bool org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.removeConfigDef(ConfigDef)
    //#input(bool removeConfigDef(ConfigDef)): config
    //#input(bool removeConfigDef(ConfigDef)): this
    //#input(bool removeConfigDef(ConfigDef)): this.configDefs
    //#output(bool removeConfigDef(ConfigDef)): return_value
    //#pre[3] (bool removeConfigDef(ConfigDef)): this.configDefs != null
    //#post(bool removeConfigDef(ConfigDef)): init'ed(return_value)
    //#RuntimeConfigDefs.java:54: end of method: bool org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.removeConfigDef(ConfigDef)
    }
    
    
    public List getConfigDefs() {
        return configDefs;
    //#RuntimeConfigDefs.java:59: method: List org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.getConfigDefs()
    //#input(List getConfigDefs()): this
    //#input(List getConfigDefs()): this.configDefs
    //#output(List getConfigDefs()): return_value
    //#pre[2] (List getConfigDefs()): init'ed(this.configDefs)
    //#post(List getConfigDefs()): return_value == this.configDefs
    //#post(List getConfigDefs()): init'ed(return_value)
    //#RuntimeConfigDefs.java:59: end of method: List org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.getConfigDefs()
    }

    public void setConfigDefs(List configDefs) {
        this.configDefs = configDefs;
    //#RuntimeConfigDefs.java:63: method: void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.setConfigDefs(List)
    //#input(void setConfigDefs(List)): configDefs
    //#input(void setConfigDefs(List)): this
    //#output(void setConfigDefs(List)): this.configDefs
    //#post(void setConfigDefs(List)): this.configDefs == configDefs
    //#post(void setConfigDefs(List)): init'ed(this.configDefs)
    }
    //#RuntimeConfigDefs.java:64: end of method: void org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.setConfigDefs(List)
    
}
    //#output(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Descendant_Table[org/apache/roller/weblogger/config/runtime/RuntimeConfigDefs]
    //#output(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.addConfigDef(Lorg/apache/roller/weblogger/config/runtime/ConfigDef;)Z
    //#output(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.getConfigDefs()Ljava/util/List;
    //#output(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.removeConfigDef(Lorg/apache/roller/weblogger/config/runtime/ConfigDef;)Z
    //#output(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.setConfigDefs(Ljava/util/List;)V
    //#post(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Descendant_Table[org/apache/roller/weblogger/config/runtime/RuntimeConfigDefs] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.addConfigDef(Lorg/apache/roller/weblogger/config/runtime/ConfigDef;)Z == &addConfigDef
    //#post(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.getConfigDefs()Ljava/util/List; == &getConfigDefs
    //#post(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.removeConfigDef(Lorg/apache/roller/weblogger/config/runtime/ConfigDef;)Z == &removeConfigDef
    //#post(org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init): __Dispatch_Table.setConfigDefs(Ljava/util/List;)V == &setConfigDefs
    //#RuntimeConfigDefs.java:: end of method: org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs.org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs__static_init
    //#RuntimeConfigDefs.java:: end of class: org.apache.roller.weblogger.config.runtime.RuntimeConfigDefs
