public ReadablePipe getReader() { ReadablePipe pipe = new Pipe(runtime, documents); readers.add(pipe); return pipe; }
public ReadablePipe getReader() { ReadablePipe pipe = new Pipe(runtime, documents); readers.add(pipe); return pipe; }
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) && "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 getReader() { if (documents == null) { documents = new DocumentSequence(runtime); } ReadablePipe pipe = new Pipe(runtime, documents); pipe.canReadSequence(sequenceOk); readers.add(pipe); return pipe; }
public ReadablePipe getReader() { if (documents == null) { documents = new DocumentSequence(runtime); } ReadablePipe pipe = new Pipe(runtime, documents); pipe.canReadSequence(sequenceOk); readers.add(pipe); return pipe; }
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 WritablePipe getWriter() { if (writer != null) { throw new XProcException(node, "Attempt to create two writers for the same input."); } if (documents == null) { documents = new DocumentSequence(runtime); } writer = new Pipe(runtime, documents); return writer; }
protected ReadablePipe getPipeFromBinding(Binding binding) { if (binding.getBindingType() == Binding.ERROR_BINDING) { errorPipe = new Pipe(runtime); return errorPipe; } else { return super.getPipeFromBinding(binding); } }
protected ReadablePipe getPipeFromBinding(Binding binding) { if (binding.getBindingType() == Binding.ERROR_BINDING) { errorPipe = new Pipe(runtime); return errorPipe; } else { return super.getPipeFromBinding(binding); } }
public WritablePipe getWriter() { if (writer != null) { throw new XProcException(node, "Attempt to create two writers for the same input."); } if (documents == null) { documents = new DocumentSequence(runtime); } writer = new Pipe(runtime, documents); return writer; }
public WritablePipe getWriter() { if (writer != null) { throw new XProcException(node, "Attempt to create two writers for the same output."); } if (inputWriter != null) { writer = inputWriter; } else { writer = new Pipe(runtime, documents); } writer.canWriteSequence(sequenceOk); return writer; } }
public WritablePipe getWriter() { if (writer != null) { throw new XProcException(node, "Attempt to create two writers for the same output."); } if (inputWriter != null) { writer = inputWriter; } else { writer = new Pipe(runtime, documents); } writer.canWriteSequence(sequenceOk); return writer; } }