public Step visibleStep(String stepName) { for (Step step : visibleSteps) { if (step.getName().equals(stepName)) { return step; } } if (parent != null) { return parent.visibleStep(stepName); } return null; }
public Output readablePort(String stepName, String portName) { Step step = visibleStep(stepName); if (step != null) { return step.getOutput(portName); } return null; } }
public Step visibleStep(String stepName) { for (Step step : visibleSteps) { if (step.getName().equals(stepName)) { return step; } } if (parent != null) { return parent.visibleStep(stepName); } return null; }
public Output readablePort(String stepName, String portName) { Step step = visibleStep(stepName); if (step != null) { return step.getOutput(portName); } return null; } }
Step step = env.visibleStep(dependsOn); if (step == null) { throw new XProcException(getNode(), "The value of cx:depends-on must be the name of an in-scope step: " + dependsOn);
Step step = env.visibleStep(pipe.getStep()); if ((step instanceof Catch && "error".equals(pipe.getPort())) || (step instanceof Choose && "#xpath-context".equals(pipe.getPort()))) {
Step step = env.visibleStep(pipe.getStep()); if ((step instanceof Catch && "error".equals(pipe.getPort())) || (step instanceof Choose && "#xpath-context".equals(pipe.getPort()))) {
Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { Step fromstep = env.visibleStep(pipe.getStep()); if ("error".equals(pipe.getPort()) && XProcConstants.p_catch.equals(fromstep.getType())) { catchErrors = true; Step pipeStep = env.visibleStep(pipe.getStep()); Step container = pipeStep.parent; if (container == this) { Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { fromstep = env.visibleStep(pipe.getStep()); if ("error".equals(pipe.getPort()) && XProcConstants.p_catch.equals(fromstep.getType())) { catchErrors = true;
Step step = env.visibleStep(dependsOn); if (step == null) { throw new XProcException(getNode(), "The value of cx:depends-on must be the name of an in-scope step: " + dependsOn);
Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { Step fromstep = env.visibleStep(pipe.getStep()); if ("error".equals(pipe.getPort()) && XProcConstants.p_catch.equals(fromstep.getType())) { catchErrors = true; Step pipeStep = env.visibleStep(pipe.getStep()); Step container = pipeStep.parent; if (container == this) { Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { fromstep = env.visibleStep(pipe.getStep()); if ("error".equals(pipe.getPort()) && XProcConstants.p_catch.equals(fromstep.getType())) { catchErrors = true;
Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { Step fromstep = env.visibleStep(pipe.getStep()); Step step = env.visibleStep(pipe.getStep()); if (XProcConstants.p_viewport.equals(step.getType())) { Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { fromstep = env.visibleStep(pipe.getStep()); if ("error".equals(pipe.getPort()) && XProcConstants.p_catch.equals(fromstep.getType())) { catchErrors = true;
Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { Step fromstep = env.visibleStep(pipe.getStep()); Step step = env.visibleStep(pipe.getStep()); if (XProcConstants.p_viewport.equals(step.getType())) { Output output = env.readablePort(pipe.getStep(), pipe.getPort()); if (output == null) { fromstep = env.visibleStep(pipe.getStep()); if ("error".equals(pipe.getPort()) && XProcConstants.p_catch.equals(fromstep.getType())) { catchErrors = true;