public Model createCopy() { ActionStateModel copy = new ActionStateModel(getId()); super.fillCopy(copy); copy.setActions(copyList(actions)); return copy; }
public Model createCopy() { EndStateModel copy = new EndStateModel(getId()); super.fillCopy(copy); copy.setView(view); copy.setCommit(commit); copy.setOutputs(outputs); return copy; }
public Model createCopy() { DecisionStateModel copy = new DecisionStateModel(getId()); super.fillCopy(copy); copy.setIfs(copyList(ifs)); copy.setOnExitActions(copyList(onExitActions)); return copy; }
public void merge(Model model) { ActionStateModel state = (ActionStateModel) 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())); setTransitions(merge(getTransitions(), state.getTransitions())); setOnExitActions(merge(getOnExitActions(), state.getOnExitActions(), false)); setActions(merge(getActions(), state.getActions(), false)); }
public Model createCopy() { ViewStateModel copy = new ViewStateModel(getId()); super.fillCopy(copy); copy.setView(view); copy.setRedirect(redirect); copy.setPopup(popup); copy.setModel(model); copy.setValidationHints(validationHints); copy.setVars(copyList(vars)); copy.setBinder((BinderModel) copy(binder)); copy.setOnRenderActions(copyList(onRenderActions)); return copy; }
public Model createCopy() { SubflowStateModel copy = new SubflowStateModel(getId(), subflow); super.fillCopy(copy); copy.setSubflowAttributeMapper(subflowAttributeMapper); copy.setInputs(copyList(inputs)); copy.setOutputs(copyList(outputs)); return copy; }
public void merge(Model model) { BindingModel binding = (BindingModel) model; setConverter(merge(getConverter(), binding.getConverter())); setRequired(merge(getRequired(), binding.getRequired())); }
public Model createCopy() { EvaluateModel copy = new EvaluateModel(expression); super.fillCopy(copy); copy.setResult(result); copy.setResultType(resultType); return copy; }
public Model createCopy() { OutputModel copy = new OutputModel(getName(), getValue()); super.fillCopy(copy); return copy; }
public Model createCopy() { InputModel copy = new InputModel(getName(), getValue()); super.fillCopy(copy); return copy; } }
public Model createCopy() { BinderModel copy = new BinderModel(); copy.setBindings(copyList(bindings)); return copy; } }
protected void fillCopy(final AbstractTransitionableStateModel copy) { super.fillCopy(copy); copy.setTransitions(copyList(transitions)); copy.setOnExitActions(copyList(onExitActions)); }
protected AbstractMappingModel fillCopy(AbstractMappingModel copy) { copy.setName(name); copy.setValue(value); copy.setType(type); copy.setRequired(required); return copy; }
public Model createCopy() { AttributeModel copy = new AttributeModel(name, value); copy.setType(type); return copy; }
public Model createCopy() { RenderModel copy = new RenderModel(fragments); super.fillCopy(copy); return copy; }
/** * Merge two strings. If the child is null, the parent will be returned. Else the child will be returned. * @param child the child string to merge * @param parent the parent string to merge * @return the merged string */ @SuppressWarnings("RedundantCast") protected String merge(String child, String parent) { return (String) merge((Object) child, (Object) parent); }
/** * Merge two lists. All child element will be in the merged list. All parent elements not in the child list will be * added. Mergeable elements in both lists will be merged according to that element merge rules. New items are added * to the end of the list * @param child the child list to merge * @param parent the parent list to merge * @return the merged list */ protected <T extends Model> LinkedList<T> merge(LinkedList<T> child, LinkedList<T> parent) { return merge(child, parent, true); }