Mercurial > hg > Members > shoshi > TreeCMSv2
diff src/treecms/api/TreeEditor.java @ 8:f96193babac0
changed byte[] to ByteBuffer
added TreeEditor.updateTree(Node,NodeData,Node[]) for node path is known.
added GUIEditor
author | shoshi |
---|---|
date | Thu, 31 Mar 2011 02:08:44 +0900 |
parents | fc19e38b669b |
children |
line wrap: on
line diff
--- a/src/treecms/api/TreeEditor.java Thu Mar 17 23:24:08 2011 +0900 +++ b/src/treecms/api/TreeEditor.java Thu Mar 31 02:08:44 2011 +0900 @@ -49,4 +49,15 @@ * @throws PathNotFoundException パスが見つからない場合 */ public Node updateTree(Node _target,NodeData _newData) throws PathNotFoundException; + + /** + * 木構造を非破壊的に更新します.Nodeへのパスが既知な場合このメソッドを使用できます。 + * このメソッドは使用時にパスの正当性を検証します。見つからない場合PathNotFoundExceptionがスローされます + * @param _target + * @param _newData + * @param _path + * @return 更新された新しいNode + * @throws PathNotFoundException + */ + public Node updateTree(Node _target,NodeData _newData,Node[] _path) throws PathNotFoundException; }