Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/main/java/alice/jungle/operations/NetworkPutAttributeOperation.java @ 177:6f104ab4eb81
fit jungle core but editMessage is not work
author | tatsuki |
---|---|
date | Mon, 01 Sep 2014 00:04:32 +0900 |
parents | b6d2db67febe |
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.EditableNode; | |
10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.PutAttribute; | 9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.PutAttribute; |
11 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; | 10 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; |
12 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; | 11 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; |
13 @Message | 12 @Message |
14 public class NetworkPutAttributeOperation implements NodeOperation | 13 public class NetworkPutAttributeOperation implements NodeOperation |
38 public Command getCommand() | 37 public Command getCommand() |
39 { | 38 { |
40 return Command.PUT_ATTRIBUTE; | 39 return Command.PUT_ATTRIBUTE; |
41 } | 40 } |
42 | 41 |
43 @Override | 42 /*@Override |
44 public <T extends EditableNode<T>> Either<Error, T> invoke(T _target) | 43 public <T extends EditableNode<T>> Either<Error, T> invoke(T _target) |
45 { | 44 { |
46 PutAttribute putAttribute = new PutAttribute(key,value); | 45 PutAttribute putAttribute = new PutAttribute(key,value); |
47 return putAttribute.edit(_target); | 46 return putAttribute.edit(_target); |
48 } | 47 }*/ |
49 | 48 |
50 @Override | 49 @Override |
51 public int getPosition() | 50 public int getPosition() |
52 { | 51 { |
53 return -1; | 52 return -1; |