KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > schemas > view > editors > attributeType > ATESuperiorComboInput


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  *
19  */

20 package org.apache.directory.ldapstudio.schemas.view.editors.attributeType;
21
22
23 import java.util.ArrayList JavaDoc;
24 import java.util.List JavaDoc;
25
26 import org.apache.directory.ldapstudio.schemas.model.AttributeType;
27
28
29 /**
30  * This class implements the Input of the Superior Combo of the Attribute Type Editor
31  *
32  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
33  * @version $Rev$, $Date$
34  */

35 public class ATESuperiorComboInput
36 {
37     /** The Attribute Type */
38     private AttributeType at;
39
40     /** The children */
41     private List JavaDoc<Object JavaDoc> children;
42
43
44     /**
45      * Creates a new instance of ATESuperiorComboInput.
46      *
47      * @param at
48      * the Attribute Type
49      */

50     public ATESuperiorComboInput( AttributeType at )
51     {
52         this.at = at;
53     }
54
55
56     /**
57      * Gets the Attribute Type.
58      *
59      * @return
60      * the attribute type
61      */

62     public AttributeType getAttributeType()
63     {
64         return at;
65     }
66
67
68     /**
69      * Adds a child.
70      *
71      * @param child
72      * the child to add
73      */

74     public void addChild( Object JavaDoc child )
75     {
76         if ( children == null )
77         {
78             children = new ArrayList JavaDoc<Object JavaDoc>();
79         }
80
81         children.add( child );
82     }
83
84
85     /**
86      * Gets the children.
87      *
88      * @return
89      * the children
90      */

91     public List JavaDoc<Object JavaDoc> getChildren()
92     {
93         if ( children == null )
94         {
95             children = new ArrayList JavaDoc<Object JavaDoc>();
96         }
97
98         return children;
99     }
100 }
101
Popular Tags