Mercurial > hg > Members > tatsuki > bench > jungle-core
view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/JungleTreeEditor.java @ 74:3a3622cf2eef
remove error but have a error test program
and LoggingChildren.iterator is bad
author | one |
---|---|
date | Wed, 27 Aug 2014 05:07:50 +0900 |
parents | ed890dcb673e |
children | 2fc0b0313dc0 |
line wrap: on
line source
package jp.ac.u_ryukyu.ie.cr.shoshi.jungle; 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.impl.TreeNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.NodeEditor; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; public interface JungleTreeEditor<T extends TreeNode<T>> { public TreeNode<T> getRoot(); public Either<Error,JungleTreeEditor<T>> addNewChildAt(NodePath _path,int _pos); public Either<Error,JungleTreeEditor<T>> deleteChildAt(NodePath _path,int _pos); public Either<Error,JungleTreeEditor<T>> putAttribute(NodePath _path,String _key,ByteBuffer _value); public Either<Error,JungleTreeEditor<T>> deleteAttribute(NodePath _path,String _key); public Either<Error,JungleTreeEditor<T>> edit(NodePath _path,NodeEditor _editor); public Either<Error,JungleTreeEditor<T>> success(); public String getID(); public String getRevision(); }