view Main/jungle-main/JungleTreeEditor.cs @ 31:1466993c104c

byte[] to object Rewrite.
author Kazuma Takeda
date Fri, 20 Jan 2017 07:08:03 +0900
parents 236a58985e22
children 56de71ae6f7e
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(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();

	}
}