summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/DbEnvs.java
blob: af53177eae73e8e528076f607c07818b8a06ef9d (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
34
35
36
// **********************************************************************
//
// 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.DbEnvDescriptor;
import IceGrid.Model;
import IceGrid.Utils;

class DbEnvs extends Parent
{
    DbEnvs(java.util.List descriptors, 
	   boolean isEditable,
	   Utils.Resolver resolver,
	   Model model)
	throws DuplicateIdException
    {
	super("DbEnvs", model);
	_isEditable = isEditable;
	java.util.Iterator p = descriptors.iterator();
	while(p.hasNext())
	{
	    DbEnvDescriptor descriptor = (DbEnvDescriptor)p.next();
	    
	    String dbEnvName = Utils.substitute(descriptor.name, resolver);
	    addChild(new DbEnv(dbEnvName, descriptor, resolver, _model));
	}
    }

    private boolean _isEditable;
}