Mercurial > hg > Members > shoshi > TreeCMSv2
comparison src/treecms/api/NodeChildren.java @ 22:fa784faafc78
commit
author | shoshi |
---|---|
date | Tue, 07 Jun 2011 16:42:49 +0900 |
parents | 084de6909451 |
children |
comparison
equal
deleted
inserted
replaced
21:f3150b37f9be | 22:fa784faafc78 |
---|---|
1 package treecms.api; | 1 package treecms.api; |
2 | 2 |
3 import java.util.List; | 3 import java.util.List; |
4 import java.util.Set; | 4 import java.util.Set; |
5 | 5 |
6 public interface NodeChildren<T extends NodeContext & NodeChildren<T>> | 6 public interface NodeChildren<T extends NodeContext & NodeAttributes & NodeChildren<T>> |
7 { | 7 { |
8 public List<T> getList(); | 8 public List<T> getList(); |
9 | 9 public T create(NodeAttributes _attr); |
10 public boolean add(T _child); | |
11 public boolean addAll(NodeChildren<T> _list); | |
12 public Set<String> getFamilyIDSet(); | 10 public Set<String> getFamilyIDSet(); |
13 | |
14 public T get(String _uuid); | 11 public T get(String _uuid); |
15 public T get(int _index); | 12 public T get(int _index); |
16 public T remove(String _uuid); | 13 public T remove(String _uuid); |
17 public T remove(int _index); | 14 public T remove(int _index); |
18 public T replace(T _new); | |
19 | |
20 public boolean contains(NodeID _id); | 15 public boolean contains(NodeID _id); |
21 public boolean swap(String _uuid,String _uuid2); | 16 public boolean swap(String _uuid,String _uuid2); |
22 | |
23 public void clearChildren(); | 17 public void clearChildren(); |
24 } | 18 } |