view Main/jungle-main/JungleTreeEditor.cs @ 33:56de71ae6f7e

Implementation of fmap.
author Kazuma Takeda
date Sat, 28 Jan 2017 19:12:18 +0900
parents 1466993c104c
children f2ea780b3e80
line wrap: on
line source


namespace JungleDB {
	public interface JungleTreeEditor {
		void SetPrevPath (NodePath path);
		Either<Error,JungleTreeEditor> addNewChildAt(NodePath path,int pos);
		Either<Error,JungleTreeEditor> deleteChildAt(NodePath path,int pos);
		Either<Error,JungleTreeEditor> putAttribute(NodePath path, string key, object value);
		Either<Error,JungleTreeEditor> putAttribute(NodePath path, object value);
		Either<Error,JungleTreeEditor> putAttribute(string key, object value);
		Either<Error,JungleTreeEditor> putAttribute(object value);
		// add Method put Attribute (path, T?);
		// Either<Error, JungleTreeEditor> putAttribute(NodePath path, string Key, T value);
		Either<Error,JungleTreeEditor> deleteAttribute(NodePath path,string key);
		Either<Error, JungleTreeEditor> replaceNewRootNode();
		Either<Error,JungleTreeEditor> edit(NodePath path, NodeEditor editor);
		Either<Error,JungleTreeEditor> commit();
		Either<Error,JungleTreeEditor> flushSuccess();

	}
}