if (!port.startsWith("|") && !port.startsWith("#") && step.getInput(port) == null) { valid = false; error("Input port " + port + " missing.", XProcConstants.staticError(7));
if (!port.startsWith("|") && !port.startsWith("#") && step.getInput(port) == null) { valid = false; error("Input port " + port + " missing.", XProcConstants.staticError(7));
public void setParameter(QName name, RuntimeValue value) { Set<String> ports = getParameterPorts(); int pportCount = 0; String pport = null; String ppport = null; for (String port : ports) { pport = port; pportCount++; Input pin = getStep().getInput(port); if (pin.getPrimary()) { ppport = port; } } if (pportCount == 0) { throw new XProcException(step.getNode(), "Attempt to set parameter but there's no parameter port."); } if (ppport != null) { pport = ppport; } else { if (pportCount > 1) { throw new XProcException(step.getNode(), "Attempt to set parameter w/o specifying a port (and there's more than one)"); } } setParameter(pport, name, value); }
public void setParameter(QName name, RuntimeValue value) { Set<String> ports = getParameterPorts(); int pportCount = 0; String pport = null; String ppport = null; for (String port : ports) { pport = port; pportCount++; Input pin = getStep().getInput(port); if (pin.getPrimary()) { ppport = port; } } if (pportCount == 0) { throw new XProcException(step.getNode(), "Attempt to set parameter but there's no parameter port."); } if (ppport != null) { pport = ppport; } else { if (pportCount > 1) { throw new XProcException(step.getNode(), "Attempt to set parameter w/o specifying a port (and there's more than one)"); } } setParameter(pport, name, value); }
Input input = getInput(portName); if (input == null) { logger.trace(MessageFormatter.nodeMessage(node, "Added " + portName + " input to " + getName()));
Input input = getInput(portName); if (input == null) { logger.trace(MessageFormatter.nodeMessage(node, "Added " + portName + " input to " + getName()));
Input input = step.getInput(port); if (!input.getParameterInput()) { int readerCount = inputs.get(port).size();
error("Port not specified and no primary parameter input port", XProcException.err_E0001); } else { Input input = getInput(port); if (input == null || !input.getParameterInput()) { valid = false;
error("Port not specified and no primary parameter input port", XProcException.err_E0001); } else { Input input = getInput(port); if (input == null || !input.getParameterInput()) { valid = false;
Input input = step.getInput(port); if (!input.getParameterInput()) { int readerCount = inputs.get(port).size();
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 {
Input input = step.getInput(port); loopdone = loopdone && (input.getPosition() <= position); if (input.getPosition() == position) {
Input input = step.getInput(port); loopdone = loopdone && (input.getPosition() <= position); if (input.getPosition() == position) {