public class _SetV extends Object implements _Operation
Assign a partial result.
SMBuilder smb = new SMBuilder();
String sv = "Hello world!";
smb._set(sv, "r1");
sv = null;
smb._set(new ObjectFunc() {
public Object get(StateMachine stateMachine) {
System.out.println(stateMachine.get("r1"));
return null;
}
});
smb.call(rp);
Output:
Hello world!
| Constructor and Description |
|---|
_SetV(_SMBuilder parentSMB,
Object value,
String resultName)
Create a _SetV
|
public _SetV(_SMBuilder parentSMB, Object value, String resultName)
parentSMB - The parent builder.value - The result.resultName - The name of the result, or null.public void call(SimpleMachine stateMachine, RP rp) throws Exception
call in interface _OperationstateMachine - The state machine driving the operation.rp - The response processor.Exception - Any uncaught exceptions raised while performing the operation.Copyright © 2012. All Rights Reserved.