@Test public void addMeasurePort_generic() throws IOException, ParserConfigurationException, SAXException, DocumentException { T2FlowExecutablePlanGenerator planGenerator = new T2FlowExecutablePlanGenerator("Name", "Author", "image/tiff", "image/jp2"); planGenerator.addMeasurePort("http: Document doc = getDocument(planGenerator); String portName = getContent(doc, TOP_WF + "/t2f:outputPorts/t2f:port/t2f:name"); assertThat(portName, is("example_com_DP_measures_1")); String portAnnotations = getSemanticAnnotation(doc, TOP_WF + "/t2f:outputPorts/t2f:port"); assertThat(portAnnotations, containsString("http: }
public void addMeasurePort(String measure) { String portName = createMeasurePortName(measure); if (portName == null) { throw new IllegalArgumentException("The provided measure " + measure + " is not valid"); } OutputPort outputPort = new OutputPort(portName, "&lt;&gt; &lt;http: + measure + "&gt; ."); workflow.addOutputPort(outputPort); }
T2FlowExecutablePlanGenerator { public void addMeasurePort(String measure) { String portName = createMeasurePortName(measure); if (portName == null) { throw new IllegalArgumentException("The provided measure " + measure + " is not valid"); } OutputPort outputPort = new OutputPort(portName, "&lt;&gt; &lt;http: + measure + "&gt; ."); workflow.addOutputPort(outputPort); } }
T2FlowExecutablePlanGenerator { public void addMeasurePort(String measure) { String portName = createMeasurePortName(measure); if (portName == null) { throw new IllegalArgumentException("The provided measure " + measure + " is not valid"); } OutputPort outputPort = new OutputPort(portName, "&lt;&gt; &lt;http: + measure + "&gt; ."); workflow.addOutputPort(outputPort); } T2FlowExecutablePlanGenerator(String name, String author);  T2FlowExecutablePlanGenerator(String name, String author, String sourceMimetype, String targetMimetype); }
T2FlowExecutablePlanGenerator { public void addMeasurePort(String measure) { String portName = createMeasurePortName(measure); if (portName == null) { throw new IllegalArgumentException("The provided measure " + measure + " is not valid"); } OutputPort outputPort = new OutputPort(portName, "&lt;&gt; &lt;http: + measure + "&gt; ."); workflow.addOutputPort(outputPort); } T2FlowExecutablePlanGenerator(String name, String author);  T2FlowExecutablePlanGenerator(String name, String author, String sourceMimetype, String targetMimetype); void addSourcePort(); void addSourcePort(int depth); void addTargetPort(); void addMeasurePort(String measure); void setMigrationComponent(WorkflowDescription workflowDescription, String workflowContent,
        Map<String, String> parameters); void addQaComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures); void addQaComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures, RelatedObject relatedObject); void addQaComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final InputSource leftSource, final InputSource rightSource, final Map<String, String> parameters,
        final List<String> measures, RelatedObject relatedObject); void addCcComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures); void addCcComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures, final InputSource inputSource); void generate(Writer writer); static String createMeasurePortName(final String measure); static String guessMeasureUrl(final String portName); }
T2FlowExecutablePlanGenerator { public void addMeasurePort(String measure) { String portName = createMeasurePortName(measure); if (portName == null) { throw new IllegalArgumentException("The provided measure " + measure + " is not valid"); } OutputPort outputPort = new OutputPort(portName, "&lt;&gt; &lt;http: + measure + "&gt; ."); workflow.addOutputPort(outputPort); } T2FlowExecutablePlanGenerator(String name, String author);  T2FlowExecutablePlanGenerator(String name, String author, String sourceMimetype, String targetMimetype); void addSourcePort(); void addSourcePort(int depth); void addTargetPort(); void addMeasurePort(String measure); void setMigrationComponent(WorkflowDescription workflowDescription, String workflowContent,
        Map<String, String> parameters); void addQaComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures); void addQaComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures, RelatedObject relatedObject); void addQaComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final InputSource leftSource, final InputSource rightSource, final Map<String, String> parameters,
        final List<String> measures, RelatedObject relatedObject); void addCcComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures); void addCcComponent(final WorkflowDescription workflowDescription, final String workflowContent,
        final Map<String, String> parameters, final List<String> measures, final InputSource inputSource); void generate(Writer writer); static String createMeasurePortName(final String measure); static String guessMeasureUrl(final String portName);  }