test_class.file: taverna-wsdl-activity/src/test/java/org/apache/taverna/activities/wsdl/xmlsplitter/XMLOutputSplitterActivityTest.java
test_class.identifier: XMLOutputSplitterActivityTest
test_case.body: @Test
  	public void testGetTypeDescriptorForOutputPort() throws Exception {
  
  		String xml = "<s:extensions xmlns:s=\"http://org.embl.ebi.escience/xscufl/0.1alpha\"><s:complextype optional=\"false\" unbounded=\"false\" typename=\"getPersonResponse\" name=\"parameters\" qname=\"{http://testing.org}getPersonResponse\"><s:elements><s:complextype optional=\"false\" unbounded=\"false\" typename=\"Person\" name=\"getPersonReturn\" qname=\"{http://testing.org}&gt;getPersonResponse&gt;getPersonReturn\"><s:elements><s:complextype optional=\"false\" unbounded=\"false\" typename=\"Address\" name=\"address\" qname=\"{http://testing.org}Person&gt;address\"><s:elements><s:basetype optional=\"false\" unbounded=\"false\" typename=\"string\" name=\"city\" qname=\"{http://testing.org}Address&gt;city\" /><s:basetype optional=\"false\" unbounded=\"false\" typename=\"int\" name=\"number\" qname=\"{http://testing.org}Address&gt;number\" /><s:basetype optional=\"false\" unbounded=\"false\" typename=\"string\" name=\"road\" qname=\"{http://testing.org}Address&gt;road\" /></s:elements></s:complextype><s:basetype optional=\"false\" unbounded=\"false\" typename=\"int\" name=\"age\" qname=\"{http://testing.org}Person&gt;age\" /><s:basetype optional=\"false\" unbounded=\"false\" typename=\"string\" name=\"name\" qname=\"{http://testing.org}Person&gt;name\" /></s:elements></s:complextype></s:elements></s:complextype></s:extensions>";
  		Element element = new SAXBuilder().build(new StringReader(xml)).getRootElement();
  		JsonNode bean = XMLSplitterConfigurationBeanBuilder.buildBeanForOutput(element);
  		XMLOutputSplitterActivity a = new XMLOutputSplitterActivity();
  		a.setEdits(new EditsImpl());
  		a.configure(bean);
  
  		assertNotNull("There should be a descriptor for the port getPersonReturn",a.getTypeDescriptorForOutputPort("getPersonReturn"));
  		assertTrue("The descriptor should be complex",a.getTypeDescriptorForOutputPort("getPersonReturn") instanceof ComplexTypeDescriptor);
  
  	}
test_case.class_method_signature: XMLOutputSplitterActivityTest.testGetTypeDescriptorForOutputPort()
test_case.full_signature: @Test public void testGetTypeDescriptorForOutputPort()
test_case.identifier: testGetTypeDescriptorForOutputPort
test_case.invocations: getRootElement build buildBeanForOutput setEdits configure assertNotNull getTypeDescriptorForOutputPort assertTrue getTypeDescriptorForOutputPort
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTypeDescriptorForOutputPort()
focal_class.declarator: URI = "http://ns.taverna.org.uk/2010/activity/xml-splitter/out"
focal_class.modifier: public static final
focal_class.original_string: public static final String URI = "http://ns.taverna.org.uk/2010/activity/xml-splitter/out";
focal_class.type: String
focal_class.var_name: URI
focal_class.declarator: configBean
focal_class.original_string: JsonNode configBean;
focal_class.type: JsonNode
focal_class.var_name: configBean
focal_class.declarator: typeDescriptor
focal_class.original_string: TypeDescriptor typeDescriptor;
focal_class.type: TypeDescriptor
focal_class.var_name: typeDescriptor
focal_class.file: taverna-wsdl-activity/src/main/java/org/apache/taverna/activities/wsdl/xmlsplitter/XMLOutputSplitterActivity.java
focal_class.identifier: XMLOutputSplitterActivity
focal_class.interfaces: implements
  		OutputPortTypeDescriptorActivity
focal_class.class_method_signature: XMLOutputSplitterActivity.configure(JsonNode configBean)
focal_class.full_signature: @Override public void configure(JsonNode configBean)
focal_class.identifier: configure
focal_class.modifiers: @Override public
focal_class.parameters: (JsonNode configBean)
focal_class.return: void
focal_class.signature: void configure(JsonNode configBean)
focal_class.class_method_signature: XMLOutputSplitterActivity.executeAsynch(final Map<String, T2Reference> data,
  			final AsynchronousActivityCallback callback)
focal_class.full_signature: @Override public void executeAsynch(final Map<String, T2Reference> data,
  			final AsynchronousActivityCallback callback)
focal_class.identifier: executeAsynch
focal_class.modifiers: @Override public
focal_class.parameters: (final Map<String, T2Reference> data,
  			final AsynchronousActivityCallback callback)
focal_class.return: void
focal_class.signature: void executeAsynch(final Map<String, T2Reference> data,
  			final AsynchronousActivityCallback callback)
focal_class.class_method_signature: XMLOutputSplitterActivity.getConfiguration()
focal_class.full_signature: @Override public JsonNode getConfiguration()
focal_class.identifier: getConfiguration
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonNode
focal_class.signature: JsonNode getConfiguration()
focal_class.class_method_signature: XMLOutputSplitterActivity.getTypeDescriptorForOutputPort(String portName)
focal_class.full_signature: public TypeDescriptor getTypeDescriptorForOutputPort(String portName)
focal_class.identifier: getTypeDescriptorForOutputPort
focal_class.modifiers: public
focal_class.parameters: (String portName)
focal_class.return: TypeDescriptor
focal_class.signature: TypeDescriptor getTypeDescriptorForOutputPort(String portName)
focal_class.class_method_signature: XMLOutputSplitterActivity.getTypeDescriptorsForOutputPorts()
focal_class.full_signature: @Override public Map<String, TypeDescriptor> getTypeDescriptorsForOutputPorts()
focal_class.identifier: getTypeDescriptorsForOutputPorts
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, TypeDescriptor>
focal_class.signature: Map<String, TypeDescriptor> getTypeDescriptorsForOutputPorts()
focal_class.superclass: extends
  		AbstractAsynchronousActivity<JsonNode>
focal_method.body: public TypeDescriptor getTypeDescriptorForOutputPort(String portName) {
  		TypeDescriptor result = null;
  		if (typeDescriptor instanceof ComplexTypeDescriptor) {
  			for (TypeDescriptor desc : ((ComplexTypeDescriptor) typeDescriptor)
  					.getElements()) {
  				if (desc.getName().equals(portName)) {
  					result = desc;
  					break;
  				}
  			}
  		}
  		else if (typeDescriptor instanceof ArrayTypeDescriptor) {
  			TypeDescriptor desc = ((ArrayTypeDescriptor)typeDescriptor).getElementType();
  
  			if (typeDescriptor.getName().equals(portName)) {
  				result = desc;
  			}
  		}
  		return result;
  	}
focal_method.class_method_signature: XMLOutputSplitterActivity.getTypeDescriptorForOutputPort(String portName)
focal_method.full_signature: public TypeDescriptor getTypeDescriptorForOutputPort(String portName)
focal_method.identifier: getTypeDescriptorForOutputPort
focal_method.invocations: getElements equals getName getElementType equals getName
focal_method.modifiers: public
focal_method.parameters: (String portName)
focal_method.return: TypeDescriptor
focal_method.signature: TypeDescriptor getTypeDescriptorForOutputPort(String portName)