01: package de.schlund.pfixcore.example.bank.context;
02:
03: import org.w3c.dom.Element;
04:
05: import de.schlund.pfixcore.example.bank.model.Account;
06: import de.schlund.pfixcore.workflow.Context;
07: import de.schlund.pfixxml.ResultDocument;
08:
09: public class ContextAccountImpl implements ContextAccount {
10:
11: private Account account;
12:
13: public void init(Context context) throws Exception {
14: }
15:
16: public void insertStatus(ResultDocument resdoc, Element elem)
17: throws Exception {
18: if (account != null) {
19: ResultDocument.addObject(elem, "account", account);
20: }
21: }
22:
23: public Account getAccount() {
24: return account;
25: }
26:
27: public void setAccount(Account account) {
28: this.account = account;
29: }
30:
31: }
|