Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 20:d5a7bed83b0a
removed
author | Shoshi TAMAKI |
---|---|
date | Thu, 20 Dec 2012 18:40:55 +0900 |
parents | 703f0be5368a |
children | 848f73545c4d |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/DefaultModifiedTreeEditor.java src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/ModifiedTreeEditorImpl.java src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/trasnformer/DefaultEditableChildren.java |
diffstat | 3 files changed, 63 insertions(+), 64 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/DefaultModifiedTreeEditor.java Thu Dec 20 18:40:55 2012 +0900 @@ -0,0 +1,56 @@ +package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl; + +import java.nio.ByteBuffer; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.TraversableTree; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.TreeEditResult; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.TreeEditor; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.NodeEditor; + +public class DefaultModifiedTreeEditor implements TreeEditor +{ + + @Override + public TraversableTree getTree() + { + return null; + } + + @Override + public TreeEditResult appendChild(NodePath _path, int _pos) { + // TODO Auto-generated method stub + return null; + } + + @Override + public TreeEditResult deleteChild(NodePath _path, int _pos) { + // TODO Auto-generated method stub + return null; + } + + @Override + public TreeEditResult putAttribute(NodePath _path, String _key, + ByteBuffer _value) { + // TODO Auto-generated method stub + return null; + } + + @Override + public TreeEditResult deleteAttribute(NodePath _path, String _key) { + // TODO Auto-generated method stub + return null; + } + + @Override + public TreeEditResult edit(NodePath _path, NodeEditor _transformer) { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean success() { + // TODO Auto-generated method stub + return false; + } + +}
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/ModifiedTreeEditorImpl.java Thu Dec 20 18:09:17 2012 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl; - -import java.nio.ByteBuffer; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Tree; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.TraversableTree; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.TreeEditor; - -class ModifiedTreeEditor implements TreeEditor -{ - - @Override - public TraversableTree getTree() - { - return null; - } - - @Override - public Result appendChildBehindOf(NodePath _path) { - // TODO Auto-generated method stub - return null; - } - - @Override - public Result appendChildInfrontOf(NodePath _path) { - // TODO Auto-generated method stub - return null; - } - - @Override - public Result deleteChild(NodePath _path) { - // TODO Auto-generated method stub - return null; - } - - @Override - public Result putAttribute(NodePath _path, ByteBuffer _key, - ByteBuffer _value) { - // TODO Auto-generated method stub - return null; - } - - @Override - public Result deleteAttribute(NodePath _path, ByteBuffer _key,ByteBuffer _value) - { - return null; - } - - @Override - public boolean success() - { - return false; - } - - @Override - public Result edit(NodePath _path, NodeTransformer _transformer) - { - return null; - } - -}
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/trasnformer/DefaultEditableChildren.java Thu Dec 20 18:09:17 2012 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/trasnformer/DefaultEditableChildren.java Thu Dec 20 18:40:55 2012 +0900 @@ -3,6 +3,7 @@ import java.util.Iterator; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.AppendChildAtOperation; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.Operation; public class DefaultEditableChildren implements EditableChildren @@ -29,10 +30,13 @@ } @Override - public EditableNode addNewChildAt(int _pos) + public EditableNode addNewChildAt(final int _pos) { - AppendChildAtOperation op = new AppendChildAtOperaiton(){ - + AppendChildAtOperation op = new AppendChildAtOperation(){ + @Override + public int position(){ + return _pos; + } }; return null;