public boolean containsStep(String stepName) { for (Step step : subpipeline) { if (stepName.equals(step.getName())) { return true; } } return false; }
public boolean containsStep(String stepName) { for (Step step : subpipeline) { if (stepName.equals(step.getName())) { return true; } } return false; }
public XStep(XProcRuntime runtime, Step step) { this.runtime = runtime; this.step = step; if (step != null) { name = step.getName(); } logger = LoggerFactory.getLogger(this.getClass()); }
public XStep(XProcRuntime runtime, Step step) { this.runtime = runtime; this.step = step; if (step != null) { name = step.getName(); } logger = LoggerFactory.getLogger(this.getClass()); }
public int countVisibleSteps(String stepName) { int count = 0; for (Step step : visibleSteps) { if (step.getName().equals(stepName)) { count++; } } if (parent != null) { count += parent.countVisibleSteps(stepName); } return count; }
public Step visibleStep(String stepName) { for (Step step : visibleSteps) { if (step.getName().equals(stepName)) { return step; } } if (parent != null) { return parent.visibleStep(stepName); } return null; }
public Step visibleStep(String stepName) { for (Step step : visibleSteps) { if (step.getName().equals(stepName)) { return step; } } if (parent != null) { return parent.visibleStep(stepName); } return null; }
public String toString() { if (getStep() == null) { return "[port " + port + " on null]"; } else { return "[port " + port + " on " + getStep().getName() + "]"; } } }
public String toString() { if (getStep() == null) { return "[port " + port + " on null]"; } else { return "[port " + port + " on " + getStep().getName() + "]"; } } }
public XdmNode read() throws SaxonApiException { XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public XdmNode read () { if (pos > 0 && !readSeqOk) { dynamicError(6); } XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public XdmNode read () { if (pos > 0 && !readSeqOk) { dynamicError(6); } XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public XdmNode read() throws SaxonApiException { DocumentSequence docs = ensureDocuments(); XdmNode doc = docs.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public XdmNode read() throws SaxonApiException { if (!readDoc) { readDoc(); } XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " select read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public XdmNode read() throws SaxonApiException { if (!readDoc) { readDoc(); } XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " select read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public String toString() { if (getStep() == null) { return "[output " + getPort() + " on null]"; } else { return "[output " + getPort() + " on " + getStep().getName() + "]"; } } }
public String toString() { if (getStep() == null) { return "[output " + getPort() + " on null]"; } else { return "[output " + getPort() + " on " + getStep().getName() + "]"; } } }
@Override public String toString() { if (getStep() == null) { return "[input " + getPort() + " on null]"; } else { return "[input " + getPort() + " on " + getStep().getName() + "]"; } }
public void write(XdmNode doc) { if (writer != null) { logger.trace(MessageFormatter.nodeMessage(writer.getNode(), writer.getName() + " wrote '" + (doc == null ? "null" : doc.getBaseURI()) + "' to " + this)); } documents.add(doc); if (documents.size() > 1 && !writeSeqOk) { dynamicError(7); } }
public void write(XdmNode doc) { if (writer != null) { logger.trace(MessageFormatter.nodeMessage(writer.getNode(), writer.getName() + " wrote '" + (doc == null ? "null" : doc.getBaseURI()) + "' to " + this)); } documents.add(doc); if (documents.size() > 1 && !writeSeqOk) { dynamicError(7); } }