Mercurial > hg > Members > shoshi > TreeCMSv2
diff src/treecms/api/NodeChildren.java @ 20:084de6909451
commit
author | shoshi |
---|---|
date | Wed, 01 Jun 2011 15:35:50 +0900 |
parents | 8bf59f161b23 |
children | fa784faafc78 |
line wrap: on
line diff
--- a/src/treecms/api/NodeChildren.java Tue May 31 15:55:28 2011 +0900 +++ b/src/treecms/api/NodeChildren.java Wed Jun 01 15:35:50 2011 +0900 @@ -3,18 +3,22 @@ import java.util.List; import java.util.Set; -public interface NodeChildren<T extends Node<T>> +public interface NodeChildren<T extends NodeContext & NodeChildren<T>> { public List<T> getList(); - public Set<String> getUUIDSet(); + public boolean add(T _child); - public boolean addAll(NodeChildren<T> _children); + public boolean addAll(NodeChildren<T> _list); + public Set<String> getFamilyIDSet(); + public T get(String _uuid); public T get(int _index); public T remove(String _uuid); public T remove(int _index); - public T replace(T _newChild); - public boolean contains(String _id); - public boolean swap(String _uuid1,String _uuid2); + public T replace(T _new); + + public boolean contains(NodeID _id); + public boolean swap(String _uuid,String _uuid2); + public void clearChildren(); }