/** * Returns the ID of the processor to call. * * @return the ID of the processor to call */ public ComponentId getDocumentProcessorId() { return processor.getId(); }
/** * Returns the next call to this processor, or null if no such calls are * left */ public Call findCall(final DocumentProcessor processor) { return findCall(processor.getId()); }
public String toString() { return "processor " + getId().stringValue(); }
private static JSONArray renderCalls(Iterator<Call> components) { JSONArray ret = new JSONArray(); while (components.hasNext()) { Call c = components.next(); JSONObject jc = renderComponent(c.getDocumentProcessor(), c.getDocumentProcessor().getId()); ret.put(jc); } return ret; }
private static CallStack convertToCallStack(Chain<DocumentProcessor> chain, Statistics statistics, Metric metric) { CallStack stack = new CallStack(chain.getId().stringValue(), statistics, metric); for (DocumentProcessor processor : chain.components()) { processor.getFieldMap().putAll(DocprocService.schemaMap.chainMap(chain.getId().stringValue(), processor.getId().stringValue())); stack.addLast(processor); } return stack; }