public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && "#xpath-context".equals(portName)) { // FIXME: Check that .get(0) works, and that there's no sequence Vector<ReadablePipe> xpc = inputs.get("#xpath-context"); if (xpc.size() == 0) { // If there's no binding for a p:choose, the default is an empty binding... return new ReadableEmpty(); } ReadablePipe pipe = xpc.get(0); return new Pipe(runtime, pipe.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && "#xpath-context".equals(portName)) { // FIXME: Check that .get(0) works, and that there's no sequence Vector<ReadablePipe> xpc = inputs.get("#xpath-context"); if (xpc.size() == 0) { // If there's no binding for a p:choose, the default is an empty binding... return new ReadableEmpty(); } ReadablePipe pipe = xpc.get(0); return new Pipe(runtime, pipe.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName)) { XInput input = getInput(portName); return input.getReader(); } for (XStep step : subpipeline) { if (stepName.equals(step.getName())) { XOutput output = step.getOutput(portName); if (output == null) { return new ReadableEmpty(); } else { ReadablePipe rpipe = output.getReader(); return rpipe; } } } return parent.getBinding(stepName, portName); }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName)) { XInput input = getInput(portName); return input.getReader(); } for (XStep step : subpipeline) { if (stepName.equals(step.getName())) { XOutput output = step.getOutput(portName); if (output == null) { return new ReadableEmpty(); } else { ReadablePipe rpipe = output.getReader(); return rpipe; } } } return parent.getBinding(stepName, portName); }