view src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/editor/jungleTreeEditor/JungleTreeEditor.java @ 329:2a0cb1f0ba4e

rename Error package
author kono
date Sat, 08 Jul 2017 21:05:55 +0900
parents 201cc75a9984
children
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.jungle.transaction.editor.jungleTreeEditor;

import jp.ac.u_ryukyu.ie.cr.jungle.store.nodepath.NodePath;
import jp.ac.u_ryukyu.ie.cr.jungle.store.trasnformer.NodeEditor;
import jp.ac.u_ryukyu.ie.cr.jungle.util.Either;
import jp.ac.u_ryukyu.ie.cr.jungle.util.jungleError.Error;

import java.nio.ByteBuffer;

public interface JungleTreeEditor {

    public Either<Error, JungleTreeEditor> addNewChildAt(NodePath path, int pos);

    public Either<Error, JungleTreeEditor> addNewChildAndPutAttribute(NodePath path, int pos, String key, ByteBuffer value);

    public Either<Error, JungleTreeEditor> deleteChildAt(NodePath path, int pos);

    public Either<Error, JungleTreeEditor> putAttribute(NodePath path, String key, ByteBuffer value);

    public Either<Error, JungleTreeEditor> deleteAttribute(NodePath path, String key);

    public Either<Error, JungleTreeEditor> replaceNewRootNode();

    public Either<Error, JungleTreeEditor> edit(NodePath path, NodeEditor editor);

    public Either<Error, JungleTreeEditor> success();

    public Either<Error, JungleTreeEditor> flushSuccess();

    public Either<Error, JungleTreeEditor> moveChild(NodePath path, int childNum, String move);
}