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  
18  package org.apache.commons.modeler.demo;
19  
20  
21  /***
22   * <p>Sample managed object for the Modeler Demonstration Application,
23   * based on the Catalina architecture of Tomcat 4.</p>
24   *
25   * @author Craig R. McClanahan
26   * @version $Revision: 155428 $ $Date: 2005-02-26 08:12:25 -0500 (Sat, 26 Feb 2005) $
27   */
28  
29  public interface Container {
30  
31  
32      // ----------------------------------------------------- Instance Variables
33  
34  
35      // ------------------------------------------------------------- Properties
36  
37  
38      /***
39       * Return the name of this Container.
40       */
41      public String getName();
42  
43  
44      /***
45       * Set the name of this Container.
46       *
47       * @param name The new name
48       */
49      public void setName(String name);
50  
51  
52      /***
53       * Return the parent Container of this Container.
54       */
55      public Container getParent();
56  
57  
58      /***
59       * Set the parent Container of this Container.
60       *
61       * @param parent The new parent container
62       */
63      public void setParent(Container parent);
64  
65  
66  }
67  
68  
69