comparison src/main/java/alice/jungle/operations/NetworkDeleteAttributeOperation.java @ 177:6f104ab4eb81

fit jungle core but editMessage is not work
author tatsuki
date Mon, 01 Sep 2014 00:04:32 +0900
parents f9e29a52efd3
children 2828205bdc3a
comparison
equal deleted inserted replaced
176:ac7d1070f449 177:6f104ab4eb81
4 4
5 import org.msgpack.annotation.Message; 5 import org.msgpack.annotation.Message;
6 6
7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command; 7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command;
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.NodeOperation; 8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.NodeOperation;
9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.DeleteAttribute; 9
10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableNode;
11 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either;
12 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error;
13 10
14 @Message 11 @Message
15 public class NetworkDeleteAttributeOperation implements NodeOperation 12 public class NetworkDeleteAttributeOperation implements NodeOperation
16 { 13 {
17 /* MessagePack cannot handle final.*/ 14 /* MessagePack cannot handle final.*/
32 public Command getCommand() 29 public Command getCommand()
33 { 30 {
34 return Command.DELETE_ATTRIBUTE; 31 return Command.DELETE_ATTRIBUTE;
35 } 32 }
36 33
37 @Override 34 /*@Override
38 public <T extends EditableNode<T>> Either<Error, T> invoke(T _target) 35 public <T extends EditableNode<T>> Either<Error, T> invoke(T _target)
39 { 36 {
40 DeleteAttribute deleteAttribute = new DeleteAttribute(key); 37 DeleteAttribute deleteAttribute = new DeleteAttribute(key);
41 return deleteAttribute.edit(_target); 38 return deleteAttribute.edit(_target);
42 } 39 }*/
43 40
44 @Override 41 @Override
45 public int getPosition() 42 public int getPosition()
46 { 43 {
47 return -1; 44 return -1;