test_class.file: taverna-spreadsheet-import-activity/src/test/java/org/apache/taverna/activities/spreadsheet/SpreadsheetUtilsTest.java
test_class.identifier: SpreadsheetUtilsTest
test_case.body: @Test
  	public void testGetPortNameStringMapOfStringString() {
  		assertEquals("A", SpreadsheetUtils.getPortName("A", null));
  		assertEquals("AABR", SpreadsheetUtils.getPortName("AABR", null));
  		ObjectNode configuration = JsonNodeFactory.instance.objectNode();
  		ArrayNode columnNames = configuration.arrayNode();
  		columnNames.addObject().put("column", "B").put("port", "beta");
  		configuration.put("columnNames", columnNames);
  		assertEquals("beta", SpreadsheetUtils.getPortName("B", configuration));
  		assertEquals("T", SpreadsheetUtils.getPortName("T", configuration));
  	}
test_case.class_method_signature: SpreadsheetUtilsTest.testGetPortNameStringMapOfStringString()
test_case.full_signature: @Test public void testGetPortNameStringMapOfStringString()
test_case.identifier: testGetPortNameStringMapOfStringString
test_case.invocations: assertEquals getPortName assertEquals getPortName objectNode arrayNode put put addObject put assertEquals getPortName assertEquals getPortName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetPortNameStringMapOfStringString()
focal_class.file: taverna-spreadsheet-import-activity/src/main/java/org/apache/taverna/activities/spreadsheet/SpreadsheetUtils.java
focal_class.identifier: SpreadsheetUtils
focal_class.class_method_signature: SpreadsheetUtils.getColumnIndex(String column)
focal_class.full_signature: public static int getColumnIndex(String column)
focal_class.identifier: getColumnIndex
focal_class.modifiers: public static
focal_class.parameters: (String column)
focal_class.return: int
focal_class.signature: int getColumnIndex(String column)
focal_class.class_method_signature: SpreadsheetUtils.getColumnLabel(int column)
focal_class.full_signature: public static String getColumnLabel(int column)
focal_class.identifier: getColumnLabel
focal_class.modifiers: public static
focal_class.parameters: (int column)
focal_class.return: String
focal_class.signature: String getColumnLabel(int column)
focal_class.class_method_signature: SpreadsheetUtils.getPortName(String columnLabel, JsonNode jsonNode)
focal_class.full_signature: public static String getPortName(String columnLabel, JsonNode jsonNode)
focal_class.identifier: getPortName
focal_class.modifiers: public static
focal_class.parameters: (String columnLabel, JsonNode jsonNode)
focal_class.return: String
focal_class.signature: String getPortName(String columnLabel, JsonNode jsonNode)
focal_class.class_method_signature: SpreadsheetUtils.getPortName(int columnIndex, JsonNode jsonNode)
focal_class.full_signature: public static String getPortName(int columnIndex, JsonNode jsonNode)
focal_class.identifier: getPortName
focal_class.modifiers: public static
focal_class.parameters: (int columnIndex, JsonNode jsonNode)
focal_class.return: String
focal_class.signature: String getPortName(int columnIndex, JsonNode jsonNode)
focal_class.class_method_signature: SpreadsheetUtils.getRange(JsonNode jsonNode)
focal_class.full_signature: public static Range getRange(JsonNode jsonNode)
focal_class.identifier: getRange
focal_class.modifiers: public static
focal_class.parameters: (JsonNode jsonNode)
focal_class.return: Range
focal_class.signature: Range getRange(JsonNode jsonNode)
focal_method.body: public static String getPortName(String columnLabel, JsonNode jsonNode) {
  		String portName = columnLabel;
  		if (jsonNode != null && jsonNode.has("columnNames")) {
  			for (JsonNode mappingNode : jsonNode.get("columnNames")) {
  				if (columnLabel.equals(mappingNode.get("column").textValue())) {
  					portName = mappingNode.get("port").textValue();
  					break;
  				}
  			}
  		}
  		return portName;
  	}
focal_method.class_method_signature: SpreadsheetUtils.getPortName(String columnLabel, JsonNode jsonNode)
focal_method.full_signature: public static String getPortName(String columnLabel, JsonNode jsonNode)
focal_method.identifier: getPortName
focal_method.invocations: has get equals textValue get textValue get
focal_method.modifiers: public static
focal_method.parameters: (String columnLabel, JsonNode jsonNode)
focal_method.return: String
focal_method.signature: String getPortName(String columnLabel, JsonNode jsonNode)