/** @see ITouchable#handleChanges(IChangesHandler) */ public void handleChanges(IChangesHandler h) { h.visit(this); // call handleChanges of all child elementss experiment.handleChanges(h); resourceDescription.handleChanges(h); // manually created alternatives obviously don't have related // preservation actions if (action != null) action.handleChanges(h); }
public static Alternative createAlternative( String uniqueName, PreservationActionDefinition action) { Alternative a = Alternative.createAlternative(); ResourceDescription rd = new ResourceDescription(); // rd.setConfigSettings(configSettings); a.setResourceDescription(rd); a.setName(uniqueName); // generate service description String descr = action.getInfo() + " using service at: " + action.getUrl(); if (action.getParameterInfo() != null && !"".equals(action.getParameterInfo())) { descr += "\n\n" + "Additional information about parameters: \n" + action.getParameterInfo(); } a.setDescription(descr); a.setAction(action); return a; }
public boolean isExecutable() { return action != null && action.isExecutable(); }