protected XProcException handleException(Throwable e) { XProcException xe = (e instanceof XProcException) ? (XProcException)e : XProcException.javaError(e, 1, new RuntimeException().getStackTrace(), 1); if (getRootStep(xe.getStep()) != getRootStep(getStep())) xe = xe.rebaseOnto(getStep()); return xe; }
if ((p_declare_step_clark.equals(name) || p_pipeline_clark.equals(name)) && step.getType() != null && step.getStep().getDeclaredType() != null) { profileWriter.addAttribute(profileType, step.getStep().getDeclaredType().getClarkName()); } else { profileWriter.addAttribute(profileType, name); profileWriter.addAttribute(profileName, step.getStep().getName()); if (step.getStep().getNode() != null) { profileWriter.addAttribute(profileHref, step.getStep().xplFile()); profileWriter.addAttribute(profileLine, ""+step.getStep().xplLine());
if ((p_declare_step_clark.equals(name) || p_pipeline_clark.equals(name)) && step.getType() != null && step.getStep().getDeclaredType() != null) { profileWriter.addAttribute(profileType, step.getStep().getDeclaredType().getClarkName()); } else { profileWriter.addAttribute(profileType, name); profileWriter.addAttribute(profileName, step.getStep().getName()); if (step.getStep().getNode() != null) { profileWriter.addAttribute(profileHref, step.getStep().xplFile()); profileWriter.addAttribute(profileLine, ""+step.getStep().xplLine());
public void setParameter(QName name, RuntimeValue value) { Set<String> ports = getParameterPorts(); int pportCount = 0; String pport = null; String ppport = null; for (String port : ports) { pport = port; pportCount++; Input pin = getStep().getInput(port); if (pin.getPrimary()) { ppport = port; } } if (pportCount == 0) { throw new XProcException(step.getNode(), "Attempt to set parameter but there's no parameter port."); } if (ppport != null) { pport = ppport; } else { if (pportCount > 1) { throw new XProcException(step.getNode(), "Attempt to set parameter w/o specifying a port (and there's more than one)"); } } setParameter(pport, name, value); }
public void setParameter(QName name, RuntimeValue value) { Set<String> ports = getParameterPorts(); int pportCount = 0; String pport = null; String ppport = null; for (String port : ports) { pport = port; pportCount++; Input pin = getStep().getInput(port); if (pin.getPrimary()) { ppport = port; } } if (pportCount == 0) { throw new XProcException(step.getNode(), "Attempt to set parameter but there's no parameter port."); } if (ppport != null) { pport = ppport; } else { if (pportCount > 1) { throw new XProcException(step.getNode(), "Attempt to set parameter w/o specifying a port (and there's more than one)"); } } setParameter(pport, name, value); }