blob: edfa339d03c5f3a843d0f33ada3a156c1d6b9dda (
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
37
38
39
40
41
42
43
44
45
46
47
48
|
// **********************************************************************
//
// 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
{
static public java.util.LinkedList copyDescriptors(java.util.LinkedList list)
{
java.util.LinkedList copy = new java.util.LinkedList();
java.util.Iterator p = list.iterator();
while(p.hasNext())
{
copy.add(DbEnv.copyDescriptor((DbEnvDescriptor)p.next()));
}
return copy;
}
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;
}
|