@Override protected void augmentIO() { if (getInput("#iteration-source") == null) { Input isource = new Input(runtime, node); isource.setPort("#iteration-source"); isource.setPrimary(true); isource.setSequence(true); addInput(isource); } super.augmentIO(); }
@Override protected void augmentIO() { if (getInput("#iteration-source") == null) { Input isource = new Input(runtime, node); isource.setPort("#iteration-source"); isource.setPrimary(true); isource.setSequence(true); addInput(isource); } super.augmentIO(); }
@Override protected void augmentIO() { if (getInput("#iteration-source") == null) { Input isource = new Input(runtime, node); isource.setPort("#iteration-source"); isource.setPrimary(true); isource.setSequence(true); addInput(isource); } super.augmentIO(); }
@Override protected void augmentIO() { if (getInput("#iteration-source") == null) { Input isource = new Input(runtime, node); isource.setPort("#iteration-source"); isource.setPrimary(true); isource.setSequence(true); addInput(isource); } super.augmentIO(); }
input.setSequence(primary.getSequence()); input.setPrimary(true); addInput(input);
input.setPrimary(dinput.getPrimary()); input.setSequence(dinput.getSequence()); input.setPosition(++position); addInput(input); input.setParameterInput(dinput.getParameterInput()); input.setPrimary(dinput.getPrimary()); input.setSequence(dinput.getSequence());
input.setPrimary(dinput.getPrimary()); input.setSequence(dinput.getSequence()); input.setPosition(++position); addInput(input); input.setParameterInput(dinput.getParameterInput()); input.setPrimary(dinput.getPrimary()); input.setSequence(dinput.getSequence());
input.setSequence(primary.getSequence()); input.setPrimary(true); addInput(input);
@Override protected void augmentIO() { // Output bindings on a compound step are really the input half of an input/output binding; // create the other half for (Output output : outputs) { Input input = getInput("|" + output.getPort()); if (input == null) { input = new Input(runtime, output.getNode()); input.setPort("|" + output.getPort()); input.setSequence(true); // the other half will check input.setPrimary(output.getPrimary()); addInput(input); } } // The only input on catch is errors and it's special } }
@Override protected void augmentIO() { // Output bindings on a compound step are really the input half of an input/output binding; // create the other half for (Output output : outputs) { Input input = getInput("|" + output.getPort()); if (input == null) { input = new Input(runtime, output.getNode()); input.setPort("|" + output.getPort()); input.setSequence(true); // the other half will check input.setPrimary(output.getPrimary()); addInput(input); } } // The only input on catch is errors and it's special } }
@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(); }
input = new Input(runtime, output.getNode()); input.setPort("|" + output.getPort()); input.setSequence(true); // the other half will check input.setPrimary(output.getPrimary()); addInput(input);
@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(); }
input = new Input(runtime, output.getNode()); input.setPort("|" + output.getPort()); input.setSequence(true); // the other half will check input.setPrimary(output.getPrimary()); addInput(input);
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(); }
private Catch readCatch(Step parent, XdmNode node) { checkAttributes(node, new String[] { "name" }, false); String stepName = checkNCName(node.getAttributeValue(_name)); Catch step = new Catch(runtime, node, stepName); checkExtensionAttributes(node, step); step.setParentDecl((DeclareStep) parent); step.parent = parent; Vector<XdmNode> rest = readSignature(step); Input input = new Input(runtime, step.getNode()); input.setPort("error"); input.addBinding(new ErrorBinding(runtime, step.getNode())); input.setPrimary(false); input.setSequence(true); step.addInput(input); if (rest == null) { throw XProcException.staticError(15, node, "A p:catch must contain a subpipeline."); } for (XdmNode substepNode : rest) { Step substep = readStep(step, substepNode); step.addStep(substep); } step.checkPrimaryIO(); return step; }
private Catch readCatch(Step parent, XdmNode node) { checkAttributes(node, new String[] { "name" }, false); String stepName = checkNCName(node.getAttributeValue(_name)); Catch step = new Catch(runtime, node, stepName); checkExtensionAttributes(node, step); step.setParentDecl((DeclareStep) parent); step.parent = parent; Vector<XdmNode> rest = readSignature(step); Input input = new Input(runtime, step.getNode()); input.setPort("error"); input.addBinding(new ErrorBinding(runtime, step.getNode())); input.setPrimary(false); input.setSequence(true); step.addInput(input); if (rest == null) { throw XProcException.staticError(15, node, "A p:catch must contain a subpipeline."); } for (XdmNode substepNode : rest) { Step substep = readStep(step, substepNode); step.addStep(substep); } step.checkPrimaryIO(); return step; }
pInput.setPort(input.getPort()); pInput.setPrimary(input.getPrimary()); pInput.setSequence(input.getSequence()); pInput.setParameterInput(input.getParameterInput()); pipeline.addInput(pInput); pInput.setSequence(output.getSequence()); pipeline.addInput(pInput);
pInput.setPort(input.getPort()); pInput.setPrimary(input.getPrimary()); pInput.setSequence(input.getSequence()); pInput.setParameterInput(input.getParameterInput()); pipeline.addInput(pInput); pInput.setSequence(output.getSequence()); pipeline.addInput(pInput);