Mercurial > hg > Members > shoshi > TreeCMSv2
diff src/treecms/api/NodeChildren.java @ 22:fa784faafc78
commit
author | shoshi |
---|---|
date | Tue, 07 Jun 2011 16:42:49 +0900 |
parents | 084de6909451 |
children |
line wrap: on
line diff
--- a/src/treecms/api/NodeChildren.java Mon Jun 06 21:49:04 2011 +0900 +++ b/src/treecms/api/NodeChildren.java Tue Jun 07 16:42:49 2011 +0900 @@ -3,22 +3,16 @@ import java.util.List; import java.util.Set; -public interface NodeChildren<T extends NodeContext & NodeChildren<T>> +public interface NodeChildren<T extends NodeContext & NodeAttributes & NodeChildren<T>> { public List<T> getList(); - - public boolean add(T _child); - public boolean addAll(NodeChildren<T> _list); + public T create(NodeAttributes _attr); 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 _new); - public boolean contains(NodeID _id); public boolean swap(String _uuid,String _uuid2); - public void clearChildren(); }