summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/Adapters.java
blob: a7482fac2c4893c916d5164f27d662edcb3796ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// **********************************************************************
//
// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
package IceGrid.TreeNode;

import IceGrid.AdapterDescriptor;
import IceGrid.Model;
import IceGrid.Utils;

class Adapters extends Parent
{
    Adapters(java.util.List descriptors, boolean editable, 
	     Utils.Resolver resolver, Model model)
    {
	super("Adapters", model);
	java.util.Iterator p = descriptors.iterator();
	while(p.hasNext())
	{
	    AdapterDescriptor descriptor = (AdapterDescriptor)p.next();
	    
	    String adapterName = Utils.substitute(descriptor.name,
						  resolver);
	    
	    addChild(new Adapter(adapterName, descriptor, editable, 
				 resolver, _model));
	}
    }
}