public void merge(Model model) { DecisionStateModel state = (DecisionStateModel) model; setParent(null); setAttributes(merge(getAttributes(), state.getAttributes())); setSecured((SecuredModel) merge(getSecured(), state.getSecured())); setOnEntryActions(merge(getOnEntryActions(), state.getOnEntryActions(), false)); setExceptionHandlers(merge(getExceptionHandlers(), state.getExceptionHandlers())); setIfs(merge(getIfs(), state.getIfs())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); }
public void merge(Model model) { DecisionStateModel state = (DecisionStateModel) model; setParent(null); setAttributes(merge(getAttributes(), state.getAttributes())); setSecured((SecuredModel) merge(getSecured(), state.getSecured())); setOnEntryActions(merge(getOnEntryActions(), state.getOnEntryActions(), false)); setExceptionHandlers(merge(getExceptionHandlers(), state.getExceptionHandlers())); setIfs(merge(getIfs(), state.getIfs())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); }
public void merge(Model model) { DecisionStateModel state = (DecisionStateModel) model; setParent(null); setAttributes(merge(getAttributes(), state.getAttributes())); setSecured((SecuredModel) merge(getSecured(), state.getSecured())); setOnEntryActions(merge(getOnEntryActions(), state.getOnEntryActions(), false)); setExceptionHandlers(merge(getExceptionHandlers(), state.getExceptionHandlers())); setIfs(merge(getIfs(), state.getIfs())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); }
public void testMerge() { DecisionStateModel child = new DecisionStateModel("child"); DecisionStateModel parent = new DecisionStateModel("child"); parent.setSecured(new SecuredModel("secured")); LinkedList<IfModel> ifs = new LinkedList<>(); ifs.add(new IfModel("test", "foo")); parent.setIfs(ifs); child.merge(parent); assertNotNull(child.getSecured()); assertNotNull("test", child.getIfs().get(0).getTest()); }