//# 0 errors, 93 messages
//#
/*
    //#ConfigDef.java:1:1: class: org.apache.roller.weblogger.config.runtime.ConfigDef
    //#ConfigDef.java:1:1: method: org.apache.roller.weblogger.config.runtime.ConfigDef.org.apache.roller.weblogger.config.runtime.ConfigDef__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.
*/
/*
 * ConfigDef.java
 *
 * Created on June 4, 2005, 1:10 PM
 */

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

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

/**
 * Represents a logic grouping of runtime configuration properties.
 * Each ConfigDef may contain 0 or more DisplayGroups.
 *
 * @author Allen Gilliland
 */
public class ConfigDef {
    
    private List displayGroups = null;
    private String name = null;
    
    
    public ConfigDef() {
    //#ConfigDef.java:41: method: void org.apache.roller.weblogger.config.runtime.ConfigDef.org.apache.roller.weblogger.config.runtime.ConfigDef()
    //#input(void org.apache.roller.weblogger.config.runtime.ConfigDef()): this
    //#output(void org.apache.roller.weblogger.config.runtime.ConfigDef()): new ArrayList(ConfigDef#1) num objects
    //#output(void org.apache.roller.weblogger.config.runtime.ConfigDef()): this.displayGroups
    //#output(void org.apache.roller.weblogger.config.runtime.ConfigDef()): this.name
    //#new obj(void org.apache.roller.weblogger.config.runtime.ConfigDef()): new ArrayList(ConfigDef#1)
    //#post(void org.apache.roller.weblogger.config.runtime.ConfigDef()): this.displayGroups == &new ArrayList(ConfigDef#1)
    //#post(void org.apache.roller.weblogger.config.runtime.ConfigDef()): this.name == null
    //#post(void org.apache.roller.weblogger.config.runtime.ConfigDef()): new ArrayList(ConfigDef#1) num objects == 1
        this.displayGroups = new ArrayList();
    }
    //#ConfigDef.java:43: end of method: void org.apache.roller.weblogger.config.runtime.ConfigDef.org.apache.roller.weblogger.config.runtime.ConfigDef()

    public ConfigDef(List displaygroups) {
    //#ConfigDef.java:45: method: void org.apache.roller.weblogger.config.runtime.ConfigDef.org.apache.roller.weblogger.config.runtime.ConfigDef(List)
    //#input(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): displaygroups
    //#input(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): this
    //#output(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): this.displayGroups
    //#output(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): this.name
    //#post(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): this.displayGroups == displaygroups
    //#post(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): init'ed(this.displayGroups)
    //#post(void org.apache.roller.weblogger.config.runtime.ConfigDef(List)): this.name == null
        this.displayGroups = displaygroups;
    }
    //#ConfigDef.java:47: end of method: void org.apache.roller.weblogger.config.runtime.ConfigDef.org.apache.roller.weblogger.config.runtime.ConfigDef(List)

    
    public boolean addDisplayGroup(DisplayGroup group) {
        return this.displayGroups.add(group);
    //#ConfigDef.java:51: method: bool org.apache.roller.weblogger.config.runtime.ConfigDef.addDisplayGroup(DisplayGroup)
    //#input(bool addDisplayGroup(DisplayGroup)): group
    //#input(bool addDisplayGroup(DisplayGroup)): this
    //#input(bool addDisplayGroup(DisplayGroup)): this.displayGroups
    //#output(bool addDisplayGroup(DisplayGroup)): return_value
    //#pre[3] (bool addDisplayGroup(DisplayGroup)): this.displayGroups != null
    //#post(bool addDisplayGroup(DisplayGroup)): init'ed(return_value)
    //#ConfigDef.java:51: end of method: bool org.apache.roller.weblogger.config.runtime.ConfigDef.addDisplayGroup(DisplayGroup)
    }
    
    public boolean removeDisplayGroup(DisplayGroup group) {
        return this.displayGroups.remove(group);
    //#ConfigDef.java:55: method: bool org.apache.roller.weblogger.config.runtime.ConfigDef.removeDisplayGroup(DisplayGroup)
    //#input(bool removeDisplayGroup(DisplayGroup)): group
    //#input(bool removeDisplayGroup(DisplayGroup)): this
    //#input(bool removeDisplayGroup(DisplayGroup)): this.displayGroups
    //#output(bool removeDisplayGroup(DisplayGroup)): return_value
    //#pre[3] (bool removeDisplayGroup(DisplayGroup)): this.displayGroups != null
    //#post(bool removeDisplayGroup(DisplayGroup)): init'ed(return_value)
    //#ConfigDef.java:55: end of method: bool org.apache.roller.weblogger.config.runtime.ConfigDef.removeDisplayGroup(DisplayGroup)
    }
    
    
    public String toString() {
        return name;
    //#ConfigDef.java:60: method: String org.apache.roller.weblogger.config.runtime.ConfigDef.toString()
    //#input(String toString()): this
    //#input(String toString()): this.name
    //#output(String toString()): return_value
    //#pre[2] (String toString()): init'ed(this.name)
    //#post(String toString()): return_value == this.name
    //#post(String toString()): init'ed(return_value)
    //#ConfigDef.java:60: end of method: String org.apache.roller.weblogger.config.runtime.ConfigDef.toString()
    }
    
    public List getDisplayGroups() {
        return displayGroups;
    //#ConfigDef.java:64: method: List org.apache.roller.weblogger.config.runtime.ConfigDef.getDisplayGroups()
    //#input(List getDisplayGroups()): this
    //#input(List getDisplayGroups()): this.displayGroups
    //#output(List getDisplayGroups()): return_value
    //#pre[2] (List getDisplayGroups()): init'ed(this.displayGroups)
    //#post(List getDisplayGroups()): return_value == this.displayGroups
    //#post(List getDisplayGroups()): init'ed(return_value)
    //#ConfigDef.java:64: end of method: List org.apache.roller.weblogger.config.runtime.ConfigDef.getDisplayGroups()
    }

    public void setDisplayGroups(List displayGroups) {
        this.displayGroups = displayGroups;
    //#ConfigDef.java:68: method: void org.apache.roller.weblogger.config.runtime.ConfigDef.setDisplayGroups(List)
    //#input(void setDisplayGroups(List)): displayGroups
    //#input(void setDisplayGroups(List)): this
    //#output(void setDisplayGroups(List)): this.displayGroups
    //#post(void setDisplayGroups(List)): this.displayGroups == displayGroups
    //#post(void setDisplayGroups(List)): init'ed(this.displayGroups)
    }
    //#ConfigDef.java:69: end of method: void org.apache.roller.weblogger.config.runtime.ConfigDef.setDisplayGroups(List)

    public String getName() {
        return name;
    //#ConfigDef.java:72: method: String org.apache.roller.weblogger.config.runtime.ConfigDef.getName()
    //#input(String getName()): this
    //#input(String getName()): this.name
    //#output(String getName()): return_value
    //#pre[2] (String getName()): init'ed(this.name)
    //#post(String getName()): return_value == this.name
    //#post(String getName()): init'ed(return_value)
    //#ConfigDef.java:72: end of method: String org.apache.roller.weblogger.config.runtime.ConfigDef.getName()
    }

    public void setName(String name) {
        this.name = name;
    //#ConfigDef.java:76: method: void org.apache.roller.weblogger.config.runtime.ConfigDef.setName(String)
    //#input(void setName(String)): name
    //#input(void setName(String)): this
    //#output(void setName(String)): this.name
    //#post(void setName(String)): this.name == name
    //#post(void setName(String)): init'ed(this.name)
    }
    //#ConfigDef.java:77: end of method: void org.apache.roller.weblogger.config.runtime.ConfigDef.setName(String)
    
}
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Descendant_Table[org/apache/roller/weblogger/config/runtime/ConfigDef]
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.addDisplayGroup(Lorg/apache/roller/weblogger/config/runtime/DisplayGroup;)Z
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.getDisplayGroups()Ljava/util/List;
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.removeDisplayGroup(Lorg/apache/roller/weblogger/config/runtime/DisplayGroup;)Z
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.setDisplayGroups(Ljava/util/List;)V
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.setName(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.toString()Ljava/lang/String;
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Descendant_Table[org/apache/roller/weblogger/config/runtime/ConfigDef] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.addDisplayGroup(Lorg/apache/roller/weblogger/config/runtime/DisplayGroup;)Z == &addDisplayGroup
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.getDisplayGroups()Ljava/util/List; == &getDisplayGroups
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &getName
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.removeDisplayGroup(Lorg/apache/roller/weblogger/config/runtime/DisplayGroup;)Z == &removeDisplayGroup
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.setDisplayGroups(Ljava/util/List;)V == &setDisplayGroups
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.setName(Ljava/lang/String;)V == &setName
    //#post(org.apache.roller.weblogger.config.runtime.ConfigDef__static_init): __Dispatch_Table.toString()Ljava/lang/String; == &toString
    //#ConfigDef.java:: end of method: org.apache.roller.weblogger.config.runtime.ConfigDef.org.apache.roller.weblogger.config.runtime.ConfigDef__static_init
    //#ConfigDef.java:: end of class: org.apache.roller.weblogger.config.runtime.ConfigDef
