String order = st.nextToken(); String scope = st.nextToken(); acts.add(new TriggerAction(index, Order.valueOf(order), Scope.valueOf(scope)));
private String getTriggerScopeKey(final Order order, final Scope scope) { return scope.name() + ":" + order.name(); }
/** * {@inheritDoc} */ @Override public int hashCode() { int result = index; result = 31 * result + order.ordinal(); result = 31 * result + scope.ordinal(); return result; }
@Override public void writeData(ObjectDataOutput out) throws IOException { out.writeInt(clnId); out.writeInt(order.ordinal()); out.writeInt(scope.ordinal()); out.writeInt(index); out.writeObject(xDoc); out.writeUTF(clientId); }
@Override public void readData(ObjectDataInput in) throws IOException { order = Order.values()[in.readInt()]; scope = Scope.values()[in.readInt()]; index = in.readInt(); xTx = in.readObject(); clientId = in.readUTF(); }
@Override public void readData(ObjectDataInput in) throws IOException { clnId = in.readInt(); order = Order.values()[in.readInt()]; scope = Scope.values()[in.readInt()]; index = in.readInt(); xDoc = in.readObject(); clientId = in.readUTF(); }
@Override public TriggerAction read(ObjectDataInput in) throws IOException { TriggerAction xAction = new TriggerAction( in.readInt(), Order.values()[in.readInt()], Scope.values()[in.readInt()]); return xAction; }
@Override public void writeData(ObjectDataOutput out) throws IOException { out.writeInt(order.ordinal()); out.writeInt(scope.ordinal()); out.writeInt(index); out.writeObject(xTx); out.writeUTF(clientId); }
@Override public void write(ObjectDataOutput out, TriggerAction xAction) throws IOException { out.writeInt(xAction.getIndex()); out.writeInt(xAction.getOrder().ordinal()); out.writeInt(xAction.getScope().ordinal()); }