public Set<String> getParameterPorts() { HashSet<String> ports = new HashSet<String> (); for (Input input : step.inputs()) { if (input.getParameterInput()) { ports.add(input.getPort()); } } return ports; }
public Set<String> getParameterPorts() { HashSet<String> ports = new HashSet<String> (); for (Input input : step.inputs()) { if (input.getParameterInput()) { ports.add(input.getPort()); } } return ports; }
protected void instantiateReaders(Step step) { for (Input input : step.inputs()) { String port = input.getPort(); if (!port.startsWith("|")) { Vector<ReadablePipe> readers = null; if (inputs.containsKey(port)) { readers = inputs.get(port); } else { readers = new Vector<ReadablePipe> (); inputs.put(port, readers); } for (Binding binding : input.getBinding()) { ReadablePipe pipe = getPipeFromBinding(binding); pipe.canReadSequence(input.getSequence()); if (input.getSelect() != null) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " selects from " + pipe + " for " + port)); pipe = new XSelect(runtime, this, pipe, input.getSelect(), input.getNode()); } readers.add(pipe); logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " reads from " + pipe + " for " + port)); } XInput xinput = new XInput(runtime, input); addInput(xinput); } } }
protected void instantiateReaders(Step step) { for (Input input : step.inputs()) { String port = input.getPort(); if (!port.startsWith("|")) { Vector<ReadablePipe> readers = null; if (inputs.containsKey(port)) { readers = inputs.get(port); } else { readers = new Vector<ReadablePipe> (); inputs.put(port, readers); } for (Binding binding : input.getBinding()) { ReadablePipe pipe = getPipeFromBinding(binding); pipe.canReadSequence(input.getSequence()); if (input.getSelect() != null) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " selects from " + pipe + " for " + port)); pipe = new XSelect(runtime, this, pipe, input.getSelect(), input.getNode()); } readers.add(pipe); logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " reads from " + pipe + " for " + port)); } XInput xinput = new XInput(runtime, input); addInput(xinput); } } }
for (Input input : sibling.inputs()) { for (Binding binding : input.getBinding()) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) {
for (Input input : sibling.inputs()) { for (Binding binding : input.getBinding()) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) {
protected void checkForBindings(HashSet<Output> outputs) { for (Input input : inputs()) { for (Binding binding : input.bindings) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) {
protected void checkForBindings(HashSet<Output> outputs) { for (Input input : inputs()) { for (Binding binding : input.bindings) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) {
private void xmlReport(Step step) { pr.print("<step xml:base='" + step.getNode().getBaseURI() + "'"); pr.print(" type='" + step.getType().getClarkName() + "'"); if (step.getDeclaredType() != null) { pr.print(" declared-type='" + step.getDeclaredType().getClarkName() + "'"); } pr.print(" name='" + step.getName() + "'"); pr.println(">"); for (Input input : step.inputs()) { xmlReport(input); } for (Output output : step.outputs()) { xmlReport(output); } for (Parameter param : step.parameters()) { xmlReport(param); } for (Option option : step.options()) { xmlReport(option); } for (Variable var : step.getVariables()) { xmlReport(var); } for (Step substep : step.subpipeline()) { xmlReport(substep); } pr.println("</step>"); }
private void xmlReport(Step step) { pr.print("<step xml:base='" + step.getNode().getBaseURI() + "'"); pr.print(" type='" + step.getType().getClarkName() + "'"); if (step.getDeclaredType() != null) { pr.print(" declared-type='" + step.getDeclaredType().getClarkName() + "'"); } pr.print(" name='" + step.getName() + "'"); pr.println(">"); for (Input input : step.inputs()) { xmlReport(input); } for (Output output : step.outputs()) { xmlReport(output); } for (Parameter param : step.parameters()) { xmlReport(param); } for (Option option : step.options()) { xmlReport(option); } for (Variable var : step.getVariables()) { xmlReport(var); } for (Step substep : step.subpipeline()) { xmlReport(substep); } pr.println("</step>"); }
@Override protected void augmentIO() { // Assume that everything will be OK when we validate... if (subpipeline.size() > 0) { Step step = subpipeline.get(0); for (Input input : step.inputs()) { Input cinput = new Input(runtime, step.getNode()); cinput.setPort(input.getPort()); cinput.setPrimary(input.getPrimary()); cinput.setSequence(input.getSequence()); addInput(cinput); } for (Output output : step.outputs()) { Output coutput = new Output(runtime, step.getNode()); coutput.setPort(output.getPort()); coutput.setPrimary(output.getPrimary()); coutput.setSequence(output.getSequence()); addOutput(coutput); } } super.augmentIO(); }
@Override protected void augmentIO() { // Assume that everything will be OK when we validate... if (subpipeline.size() > 0) { Step step = subpipeline.get(0); for (Input input : step.inputs()) { Input cinput = new Input(runtime, step.getNode()); cinput.setPort(input.getPort()); cinput.setPrimary(input.getPrimary()); cinput.setSequence(input.getSequence()); addInput(cinput); } for (Output output : step.outputs()) { Output coutput = new Output(runtime, step.getNode()); coutput.setPort(output.getPort()); coutput.setPrimary(output.getPrimary()); coutput.setSequence(output.getSequence()); addOutput(coutput); } } super.augmentIO(); }
boolean seenPrimaryParam = false; for (Input input : inputs()) { if (!input.getPort().startsWith("|") && input.getPrimary()) { if (input.getParameterInput()) {
boolean seenPrimaryParam = false; for (Input input : inputs()) { if (!input.getPort().startsWith("|") && input.getPrimary()) { if (input.getParameterInput()) {
protected void augmentIO() { if (getInput("#xpath-context") == null) { Input isource = new Input(runtime, node); isource.setPort("#xpath-context"); addInput(isource); } // Assume that everything will be OK when we validate... if (subpipeline.size() > 0) { Step step = subpipeline.get(0); for (Input input : step.inputs()) { Input cinput = new Input(runtime, step.getNode()); cinput.setPort(input.getPort()); cinput.setPrimary(input.getPrimary()); cinput.setSequence(input.getSequence()); addInput(cinput); } for (Output output : step.outputs()) { Output coutput = new Output(runtime, step.getNode()); coutput.setPort(output.getPort()); coutput.setPrimary(output.getPrimary()); coutput.setSequence(output.getSequence()); addOutput(coutput); } } super.augmentIO(); }
protected void augmentIO() { if (getInput("#xpath-context") == null) { Input isource = new Input(runtime, node); isource.setPort("#xpath-context"); addInput(isource); } // Assume that everything will be OK when we validate... if (subpipeline.size() > 0) { Step step = subpipeline.get(0); for (Input input : step.inputs()) { Input cinput = new Input(runtime, step.getNode()); cinput.setPort(input.getPort()); cinput.setPrimary(input.getPrimary()); cinput.setSequence(input.getSequence()); addInput(cinput); } for (Output output : step.outputs()) { Output coutput = new Output(runtime, step.getNode()); coutput.setPort(output.getPort()); coutput.setPrimary(output.getPrimary()); coutput.setSequence(output.getSequence()); addOutput(coutput); } } super.augmentIO(); }