public Output getOutput(String portName) { Output output = super.getOutput(portName); if (output != null) { return output; } // On compound steps, inputs are also readable by the contained steps. // Except that you can't really read from an input so we go looking for the corresponding // output. for (Input input : inputs) { if (portName.equals(input.getPort())) { return super.getOutput(portName + "|"); } } return null; }
public Output getOutput(String portName) { Output output = super.getOutput(portName); if (output != null) { return output; } // On compound steps, inputs are also readable by the contained steps. // Except that you can't really read from an input so we go looking for the corresponding // output. for (Input input : inputs) { if (portName.equals(input.getPort())) { return super.getOutput(portName + "|"); } } return null; }
public Serialization getSerialization(String port) { Output output = step.getOutput(port); return output.getSerialization(); }
public Output readablePort(String stepName, String portName) { Step step = visibleStep(stepName); if (step != null) { return step.getOutput(portName); } return null; } }
public Output readablePort(String stepName, String portName) { Step step = visibleStep(stepName); if (step != null) { return step.getOutput(portName); } return null; } }
public Serialization getSerialization(String port) { Output output = step.getOutput(port); return output.getSerialization(); }
if (!port.endsWith("|") && step.getOutput(port) == null) { valid = false; error("Output port " + port + " missing.", XProcConstants.staticError(7));
if (!port.endsWith("|") && step.getOutput(port) == null) { valid = false; error("Output port " + port + " missing.", XProcConstants.staticError(7));
String wport = port.substring(1); boolean seqOk = step.getOutput(wport).getSequence(); int docsCopied = 0;
Output output = getOutput(portName); if (output == null) { logger.trace(MessageFormatter.nodeMessage(node, "Added " + portName + " output to " + getName()));
Output output = getOutput(portName); if (output == null) { logger.trace(MessageFormatter.nodeMessage(node, "Added " + portName + " output to " + getName()));
String wport = port.substring(1); boolean seqOk = step.getOutput(wport).getSequence(); int docsCopied = 0;
if (step.getInput(input.getPort()) != null || step.getOutput(input.getPort()) != null) { runtime.error(null, node, "Duplicate port name: " + input.getPort(), XProcConstants.staticError(11)); } else { if (step.getInput(output.getPort()) != null || step.getOutput(output.getPort()) != null) { runtime.error(null, node, "Duplicate port name: " + output.getPort(), XProcConstants.staticError(11)); } else {
if (step.getInput(input.getPort()) != null || step.getOutput(input.getPort()) != null) { runtime.error(null, node, "Duplicate port name: " + input.getPort(), XProcConstants.staticError(11)); } else { if (step.getInput(output.getPort()) != null || step.getOutput(output.getPort()) != null) { runtime.error(null, node, "Duplicate port name: " + output.getPort(), XProcConstants.staticError(11)); } else {
public boolean valid() { boolean valid = validParams(); if (!matchesDeclaration()) { valid = false; } if (!validOptions()) { valid = false; } if (!validBindings()) { valid = false; } for (Log log : logs) { Output output = getOutput(log.getPort()); if (output == null) { error("A p:log specified for a bad port: " + log.getPort(), XProcConstants.staticError(26)); valid = false; } } if (env.countVisibleSteps(getName()) > 1) { error("Duplicate step name: " + getName(), XProcConstants.staticError(2)); valid = false; } return valid; }
public boolean valid() { boolean valid = validParams(); if (!matchesDeclaration()) { valid = false; } if (!validOptions()) { valid = false; } if (!validBindings()) { valid = false; } for (Log log : logs) { Output output = getOutput(log.getPort()); if (output == null) { error("A p:log specified for a bad port: " + log.getPort(), XProcConstants.staticError(26)); valid = false; } } if (env.countVisibleSteps(getName()) > 1) { error("Duplicate step name: " + getName(), XProcConstants.staticError(2)); valid = false; } return valid; }