/** * Determines whether the given input port supports being splitted * * @param input * @return */ public static boolean isSplittable(InputPort input) { boolean result = false; if (input.getSyntacticType().equalsIgnoreCase("'text/xml'") || input.getSyntacticType().equalsIgnoreCase("l('text/xml')")) { if (input.getProcessor() instanceof WSDLBasedProcessor) { result = true; } else if (input.getProcessor() instanceof LocalServiceProcessor) { LocalServiceProcessor processor = (LocalServiceProcessor) input .getProcessor(); if (processor.getWorker() instanceof XMLInputSplitter) { result = true; } } } return result; }
XScuflNS); inputElement.setText(inputs[i].getName()); if (inputs[i].getSyntacticType() != null) inputElement.setAttribute("syntactictype", inputs[i] .getSyntacticType(), XScuflNS); inputList.addContent(inputElement);
Element inputElement = new Element("bsfinput", XScufl.XScuflNS); inputElement.setText(inputs[i].getName()); if (inputs[i].getSyntacticType() != null) inputElement.setAttribute("syntactictype", inputs[i].getSyntacticType(), XScufl.XScuflNS); inputList.addContent(inputElement);
inputElement.setText(inputPort.getName()); inputElement.setAttribute(SYNTACTIC_TYPE_ATTRIBUTE, inputPort .getSyntacticType(), XScufl.XScuflNS); inputList.addContent(inputElement);
String inputType = myInput.getSyntacticType();
bean.setName(inputPort.getName()); bean.setDepth(determineDepthFromSyntacticType(inputPort .getSyntacticType())); List<String> mimeTypes = new ArrayList<String>(); mimeTypes.add(inputPort.getSyntacticType()); bean.setMimeTypes(mimeTypes); bean.setHandledReferenceSchemes(new ArrayList<Class<? extends ReferenceScheme<?>>>()); bean.setTranslatedElementType(determineClassFromSyntacticType(inputPort.getSyntacticType())); bean.setAllowsLiteralValues(true); inputDefinitions.add(bean);
throw new TaskExecutionException( "The port 'input' was not specified correctly."); String inputType = myInput.getSyntacticType();