blob: c77eca9ae27f26456b7b78d5be9bd6cae647a7a8 (
plain) (
blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/****************************************************************************
* Copyright (c) 2006, 2007 Remy Suen, Composent Inc., and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Remy Suen <remy.suen@gmail.com> - initial API and implementation
*****************************************************************************/
package org.eclipse.ecf.internal.provider.msn;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import org.eclipse.ecf.presence.roster.IRoster;
import org.eclipse.ecf.presence.roster.IRosterGroup;
import org.eclipse.ecf.presence.roster.IRosterItem;
import org.hantsuki.gokigenyou.Group;
final class MSNRosterGroup implements IRosterGroup {
private final IRoster roster;
private final List entries;
private final Group group;
MSNRosterGroup(IRoster roster, Group group) {
this.roster = roster;
this.group = group;
entries = new ArrayList();
}
public Collection getEntries() {
return Collections.unmodifiableCollection(entries);
}
void add(MSNRosterEntry entry) {
entries.add(entry);
entry.setParent(this);
}
Group getGroup() {
return group;
}
public String getName() {
return group.getName();
}
public IRosterItem getParent() {
return roster;
}
public Object getAdapter(Class adapter) {
return null;
}
}
|