test_class.file: taverna-wsdl-generic/src/test/java/org/apache/taverna/wsdl/xmlsplitter/XMLSplitterSerialisationHelperTest.java
test_class.identifier: XMLSplitterSerialisationHelperTest
test_case.body: @Test
  	public void testCyclicToElement2() throws Exception {
  		ComplexTypeDescriptor a = new ComplexTypeDescriptor();
  		a.setName("a");
  		a.setType("typename");
  		a.setQnameFromString("{namespace}typename");
  
  		a.getElements().add(a);
  
  		Element el = XMLSplitterSerialisationHelper
  				.typeDescriptorToExtensionXML(a);
  
  		String xml = new XMLOutputter().outputString(el);
  
  		assertEquals(
  				"unexpected xml",
  				"<s:extensions xmlns:s=\"http://org.embl.ebi.escience/xscufl/0.1alpha\"><s:complextype optional=\"false\" unbounded=\"false\" typename=\"typename\" name=\"a\" qname=\"{namespace}typename\"><s:elements><s:complextype id=\"{namespace}typename\" optional=\"false\" unbounded=\"false\" typename=\"typename\" name=\"a\" /></s:elements></s:complextype></s:extensions>",
  				xml);
  	}
test_case.class_method_signature: XMLSplitterSerialisationHelperTest.testCyclicToElement2()
test_case.full_signature: @Test public void testCyclicToElement2()
test_case.identifier: testCyclicToElement2
test_case.invocations: setName setType setQnameFromString add getElements typeDescriptorToExtensionXML outputString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCyclicToElement2()
focal_class.declarator: XScuflNS = Namespace.getNamespace("s",
  			"http://org.embl.ebi.escience/xscufl/0.1alpha")
focal_class.modifier: public final static
focal_class.original_string: public final static Namespace XScuflNS = Namespace.getNamespace("s",
  			"http://org.embl.ebi.escience/xscufl/0.1alpha");
focal_class.type: Namespace
focal_class.var_name: XScuflNS
focal_class.declarator: logger = Logger
  			.getLogger(XMLSplitterSerialisationHelper.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger
  			.getLogger(XMLSplitterSerialisationHelper.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: taverna-wsdl-generic/src/main/java/org/apache/taverna/wsdl/xmlsplitter/XMLSplitterSerialisationHelper.java
focal_class.identifier: XMLSplitterSerialisationHelper
focal_class.class_method_signature: XMLSplitterSerialisationHelper.typeDescriptorToExtensionXML(TypeDescriptor descriptor)
focal_class.full_signature: public static Element typeDescriptorToExtensionXML(TypeDescriptor descriptor)
focal_class.identifier: typeDescriptorToExtensionXML
focal_class.modifiers: public static
focal_class.parameters: (TypeDescriptor descriptor)
focal_class.return: Element
focal_class.signature: Element typeDescriptorToExtensionXML(TypeDescriptor descriptor)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.extensionXMLToTypeDescriptor(Element element)
focal_class.full_signature: public static TypeDescriptor extensionXMLToTypeDescriptor(Element element)
focal_class.identifier: extensionXMLToTypeDescriptor
focal_class.modifiers: public static
focal_class.parameters: (Element element)
focal_class.return: TypeDescriptor
focal_class.signature: TypeDescriptor extensionXMLToTypeDescriptor(Element element)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.constructElementForArrayType(
  			ArrayTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.full_signature: private static Element constructElementForArrayType(
  			ArrayTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.identifier: constructElementForArrayType
focal_class.modifiers: private static
focal_class.parameters: (
  			ArrayTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.return: Element
focal_class.signature: Element constructElementForArrayType(
  			ArrayTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.constructElementForComplexType(
  			ComplexTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.full_signature: private static Element constructElementForComplexType(
  			ComplexTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.identifier: constructElementForComplexType
focal_class.modifiers: private static
focal_class.parameters: (
  			ComplexTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.return: Element
focal_class.signature: Element constructElementForComplexType(
  			ComplexTypeDescriptor descriptor, List<String> existingsTypes)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.populateElement(Element element,
  			TypeDescriptor descriptor)
focal_class.full_signature: private static void populateElement(Element element,
  			TypeDescriptor descriptor)
focal_class.identifier: populateElement
focal_class.modifiers: private static
focal_class.parameters: (Element element,
  			TypeDescriptor descriptor)
focal_class.return: void
focal_class.signature: void populateElement(Element element,
  			TypeDescriptor descriptor)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.buildTypeDescriptorFromElement(
  			Element element, HashMap<String, TypeDescriptor> existingsTypes)
focal_class.full_signature: private static TypeDescriptor buildTypeDescriptorFromElement(
  			Element element, HashMap<String, TypeDescriptor> existingsTypes)
focal_class.identifier: buildTypeDescriptorFromElement
focal_class.modifiers: private static
focal_class.parameters: (
  			Element element, HashMap<String, TypeDescriptor> existingsTypes)
focal_class.return: TypeDescriptor
focal_class.signature: TypeDescriptor buildTypeDescriptorFromElement(
  			Element element, HashMap<String, TypeDescriptor> existingsTypes)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.createFromCache(TypeDescriptor descriptor,
  			Element element)
focal_class.full_signature: private static TypeDescriptor createFromCache(TypeDescriptor descriptor,
  			Element element)
focal_class.identifier: createFromCache
focal_class.modifiers: private static
focal_class.parameters: (TypeDescriptor descriptor,
  			Element element)
focal_class.return: TypeDescriptor
focal_class.signature: TypeDescriptor createFromCache(TypeDescriptor descriptor,
  			Element element)
focal_class.class_method_signature: XMLSplitterSerialisationHelper.populateDescriptor(Element element,
  			TypeDescriptor result)
focal_class.full_signature: private static void populateDescriptor(Element element,
  			TypeDescriptor result)
focal_class.identifier: populateDescriptor
focal_class.modifiers: private static
focal_class.parameters: (Element element,
  			TypeDescriptor result)
focal_class.return: void
focal_class.signature: void populateDescriptor(Element element,
  			TypeDescriptor result)
focal_method.body: public static Element typeDescriptorToExtensionXML(TypeDescriptor descriptor) {
  		Element result = new Element("extensions", XScuflNS);
  		Element type = null;
  		if (descriptor instanceof ComplexTypeDescriptor) {
  			type = constructElementForComplexType(
  					(ComplexTypeDescriptor) descriptor, new ArrayList<String>());
  		}
  		else if (descriptor instanceof ArrayTypeDescriptor) {
  			type = constructElementForArrayType(
  					(ArrayTypeDescriptor) descriptor, new ArrayList<String>());
  		}
  		result.addContent(type);
  		return result;
  	}
focal_method.class_method_signature: XMLSplitterSerialisationHelper.typeDescriptorToExtensionXML(TypeDescriptor descriptor)
focal_method.full_signature: public static Element typeDescriptorToExtensionXML(TypeDescriptor descriptor)
focal_method.identifier: typeDescriptorToExtensionXML
focal_method.invocations: constructElementForComplexType constructElementForArrayType addContent
focal_method.modifiers: public static
focal_method.parameters: (TypeDescriptor descriptor)
focal_method.return: Element
focal_method.signature: Element typeDescriptorToExtensionXML(TypeDescriptor descriptor)