Mercurial > hg > Members > shoshi > TreeCMSv2
comparison src/treecms/api/NodeChildren.java @ 20:084de6909451
commit
author | shoshi |
---|---|
date | Wed, 01 Jun 2011 15:35:50 +0900 |
parents | 8bf59f161b23 |
children | fa784faafc78 |
comparison
equal
deleted
inserted
replaced
19:019ca5abb1f0 | 20:084de6909451 |
---|---|
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 Node<T>> | 6 public interface NodeChildren<T extends NodeContext & NodeChildren<T>> |
7 { | 7 { |
8 public List<T> getList(); | 8 public List<T> getList(); |
9 public Set<String> getUUIDSet(); | 9 |
10 public boolean add(T _child); | 10 public boolean add(T _child); |
11 public boolean addAll(NodeChildren<T> _children); | 11 public boolean addAll(NodeChildren<T> _list); |
12 public Set<String> getFamilyIDSet(); | |
13 | |
12 public T get(String _uuid); | 14 public T get(String _uuid); |
13 public T get(int _index); | 15 public T get(int _index); |
14 public T remove(String _uuid); | 16 public T remove(String _uuid); |
15 public T remove(int _index); | 17 public T remove(int _index); |
16 public T replace(T _newChild); | 18 public T replace(T _new); |
17 public boolean contains(String _id); | 19 |
18 public boolean swap(String _uuid1,String _uuid2); | 20 public boolean contains(NodeID _id); |
21 public boolean swap(String _uuid,String _uuid2); | |
22 | |
19 public void clearChildren(); | 23 public void clearChildren(); |
20 } | 24 } |