public Output getOutput(String portName) { if ("current".equals(portName)) { return getOutput("#current"); } else { return super.getOutput(portName); } }
private UntilUnchanged readUntilUnchanged(Step parent, XdmNode node) { QName name = node.getNodeName(); if (!XProcConstants.cx_until_unchanged.equals(name)) { throw new UnsupportedOperationException("Can't parse " + name + " as a cx:until-unchanged!"); } checkAttributes(node, new String[] { "name" }, false); String stepName = checkNCName(node.getAttributeValue(_name)); UntilUnchanged step = new UntilUnchanged(runtime, node, stepName); checkExtensionAttributes(node, step); step.setParentDecl((DeclareStep) parent); step.parent = parent; Vector<XdmNode> rest = readSignature(step); if (rest == null) { throw XProcException.staticError(15, node, "A cx:until-unchanged must contain a subpipeline."); } for (XdmNode substepNode : rest) { Step substep = readStep(step, substepNode); step.addStep(substep); } step.checkPrimaryIO(); return step; }
public UntilUnchanged(XProcRuntime xproc, XdmNode node, String name) { super(xproc, node, name); declaration = this; stepType = XProcConstants.cx_until_unchanged; Output current = new Output(xproc, node); current.setPort("#current"); current.setSequence(true); addOutput(current); }
private UntilUnchanged readUntilUnchanged(Step parent, XdmNode node) { QName name = node.getNodeName(); if (!XProcConstants.cx_until_unchanged.equals(name)) { throw new UnsupportedOperationException("Can't parse " + name + " as a cx:until-unchanged!"); } checkAttributes(node, new String[] { "name" }, false); String stepName = checkNCName(node.getAttributeValue(_name)); UntilUnchanged step = new UntilUnchanged(runtime, node, stepName); checkExtensionAttributes(node, step); step.setParentDecl((DeclareStep) parent); step.parent = parent; Vector<XdmNode> rest = readSignature(step); if (rest == null) { throw XProcException.staticError(15, node, "A cx:until-unchanged must contain a subpipeline."); } for (XdmNode substepNode : rest) { Step substep = readStep(step, substepNode); step.addStep(substep); } step.checkPrimaryIO(); return step; }
public UntilUnchanged(XProcRuntime xproc, XdmNode node, String name) { super(xproc, node, name); declaration = this; stepType = XProcConstants.cx_until_unchanged; Output current = new Output(xproc, node); current.setPort("#current"); current.setSequence(true); addOutput(current); }
public Output getOutput(String portName) { if ("current".equals(portName)) { return getOutput("#current"); } else { return super.getOutput(portName); } }
public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); } }
public void patchEnvironment(Environment env) { env.setDefaultReadablePort(getOutput("#current")); } }