public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && "error".equals(portName)) { return new Pipe(runtime,errorPipe.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && "error".equals(portName)) { return new Pipe(runtime,errorPipe.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) && "#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) && ("#current".equals(portName) || "current".equals(portName))) { if (current == null) { current = new Pipe(runtime); } return new Pipe(runtime,current.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && ("#current".equals(portName) || "current".equals(portName))) { if (current == null) { current = new Pipe(runtime); } return new Pipe(runtime,current.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && ("#current".equals(portName) || "current".equals(portName))) { if (current == null) { current = new Pipe(runtime); } return new Pipe(runtime,current.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && ("#current".equals(portName) || "current".equals(portName))) { if (current == null) { current = new Pipe(runtime); } return new Pipe(runtime,current.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && ("#current".equals(portName) || "current".equals(portName))) { if (current == null) { current = new Pipe(runtime); } return new Pipe(runtime,current.documents()); } else { return super.getBinding(stepName, portName); } }
public ReadablePipe getBinding(String stepName, String portName) { if (name.equals(stepName) && ("#current".equals(portName) || "current".equals(portName))) { if (current == null) { current = new Pipe(runtime); } return new Pipe(runtime,current.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); }
pipe = start.getBinding(pnbinding.getStep(), pnbinding.getPort()); pipe.setNames(pnbinding.getStep(), pnbinding.getPort()); } else if (binding.getBindingType() == Binding.INLINE_BINDING) { step = step.getParent(); pipe = step.getBinding(step.getName(), "error"); } else { throw new XProcException(binding.getNode(), "Unknown binding type: " + binding.getBindingType());
pipe = start.getBinding(pnbinding.getStep(), pnbinding.getPort()); pipe.setNames(pnbinding.getStep(), pnbinding.getPort()); } else if (binding.getBindingType() == Binding.INLINE_BINDING) { step = step.getParent(); pipe = step.getBinding(step.getName(), "error"); } else { throw new XProcException(binding.getNode(), "Unknown binding type: " + binding.getBindingType());