示例#1
0
 public Op make() {
   Op make = new Op("make", new Contract("obix:Nil"), new Contract("obix:Watch"));
   make.setHref(new Uri("make"));
   make.setOperationHandler(
       new OperationHandler() {
         public Obj invoke(Obj in) {
           return doMake();
         }
       });
   return make;
 }
示例#2
0
 Invoke(Op op) {
   super(op.toDisplayName(), "x16/exclaim.png", null);
   this.op = op;
 }