Mercurial > hg > Members > shoshi > TreeCMSv2
diff src/treecms/api/MonotonicTreeNode.java @ 14:8bf59f161b23
separete Node methods to NodeContext , NodeAttribute , NodeChildren
author | misaka |
---|---|
date | Tue, 17 May 2011 18:44:14 +0900 |
parents | fbbb7e414346 |
children | 084de6909451 |
line wrap: on
line diff
--- a/src/treecms/api/MonotonicTreeNode.java Wed May 11 22:08:20 2011 +0900 +++ b/src/treecms/api/MonotonicTreeNode.java Tue May 17 18:44:14 2011 +0900 @@ -1,44 +1,12 @@ package treecms.api; -import java.nio.ByteBuffer; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - /** * NodeのDoubleLinkedな実装です.SingleLinkedとは違いNodeの親情報まで保持します. * TreeNodeとは違い、この実装は木を非破壊的に編集します. * @author shoshi */ -public interface MonotonicTreeNode +public interface MonotonicTreeNode extends Node<MonotonicTreeNode> { - /* - * 属性関連のメソッド - */ - public ByteBuffer get(ByteBuffer _key); - public Map<ByteBuffer,ByteBuffer> getAll(); - public void put(ByteBuffer _key,ByteBuffer _value); - public void putAll(Map<ByteBuffer,ByteBuffer> _map); - public void remove(ByteBuffer _key); - public void removeAll(Set<ByteBuffer> _keys); - public void clear(); - - /* - * 子供関連のメソッド - */ - public Iterator<MonotonicTreeNode> getChildren(); - public void addChild(MonotonicTreeNode _n); - public void addChildren(List<MonotonicTreeNode> _list); - public void removeChild(MonotonicTreeNode _n); - public void removeChildren(List<MonotonicTreeNode> _list); - public void clearChildren(); - - /* - * 親関連のメソッド - */ - public NodeID getID(); - public Forest getForest(); public MonotonicTreeNode getParent(); - public Node getNode(); + public SingleNode getNode(); }