@Test public void testRdef03Build() throws Exception { check(build("rdef03"), "rdef03.map"); }
public Map < String, RootCompositeType > build(XmlSchema xmlSchema) throws Xsd2ConverterException { log.debug("visit XML Schema started"); Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >(); for (Entry < QName, XmlSchemaElement > entry : xmlSchema.getElements() .entrySet()) { if (entry.getValue().getSchemaType() instanceof XmlSchemaComplexType) { CobolAnnotations cobolAnnotations = new CobolAnnotations( entry.getValue()); XmlSchemaComplexType xsdComplexType = (XmlSchemaComplexType) entry .getValue().getSchemaType(); RootCompositeType compositeTypes = new RootCompositeType( cobolAnnotations.getCobolName()); String complexTypeName = getComplexTypeName(xsdComplexType); rootComplexTypes.put(complexTypeName, compositeTypes); visit(xsdComplexType, compositeTypes, complexTypeName); } } log.debug("visit XML Schema ended"); return rootComplexTypes; }
Xsd2CobolTypesModelBuilder { public Map < String, RootCompositeType > build(XmlSchema xmlSchema) throws Xsd2ConverterException { log.debug("visit XML Schema started"); Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >(); for (Entry < QName, XmlSchemaElement > entry : xmlSchema.getElements() .entrySet()) { if (entry.getValue().getSchemaType() instanceof XmlSchemaComplexType) { CobolAnnotations cobolAnnotations = new CobolAnnotations( entry.getValue()); XmlSchemaComplexType xsdComplexType = (XmlSchemaComplexType) entry .getValue().getSchemaType(); RootCompositeType compositeTypes = new RootCompositeType( cobolAnnotations.getCobolName()); String complexTypeName = getComplexTypeName(xsdComplexType); rootComplexTypes.put(complexTypeName, compositeTypes); visit(xsdComplexType, compositeTypes, complexTypeName); } } log.debug("visit XML Schema ended"); return rootComplexTypes; } }
Xsd2CobolTypesModelBuilder { public Map < String, RootCompositeType > build(XmlSchema xmlSchema) throws Xsd2ConverterException { log.debug("visit XML Schema started"); Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >(); for (Entry < QName, XmlSchemaElement > entry : xmlSchema.getElements() .entrySet()) { if (entry.getValue().getSchemaType() instanceof XmlSchemaComplexType) { CobolAnnotations cobolAnnotations = new CobolAnnotations( entry.getValue()); XmlSchemaComplexType xsdComplexType = (XmlSchemaComplexType) entry .getValue().getSchemaType(); RootCompositeType compositeTypes = new RootCompositeType( cobolAnnotations.getCobolName()); String complexTypeName = getComplexTypeName(xsdComplexType); rootComplexTypes.put(complexTypeName, compositeTypes); visit(xsdComplexType, compositeTypes, complexTypeName); } } log.debug("visit XML Schema ended"); return rootComplexTypes; }  }
Xsd2CobolTypesModelBuilder { public Map < String, RootCompositeType > build(XmlSchema xmlSchema) throws Xsd2ConverterException { log.debug("visit XML Schema started"); Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >(); for (Entry < QName, XmlSchemaElement > entry : xmlSchema.getElements() .entrySet()) { if (entry.getValue().getSchemaType() instanceof XmlSchemaComplexType) { CobolAnnotations cobolAnnotations = new CobolAnnotations( entry.getValue()); XmlSchemaComplexType xsdComplexType = (XmlSchemaComplexType) entry .getValue().getSchemaType(); RootCompositeType compositeTypes = new RootCompositeType( cobolAnnotations.getCobolName()); String complexTypeName = getComplexTypeName(xsdComplexType); rootComplexTypes.put(complexTypeName, compositeTypes); visit(xsdComplexType, compositeTypes, complexTypeName); } } log.debug("visit XML Schema ended"); return rootComplexTypes; }  Map < String, RootCompositeType > build(XmlSchema xmlSchema); }
Xsd2CobolTypesModelBuilder { public Map < String, RootCompositeType > build(XmlSchema xmlSchema) throws Xsd2ConverterException { log.debug("visit XML Schema started"); Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >(); for (Entry < QName, XmlSchemaElement > entry : xmlSchema.getElements() .entrySet()) { if (entry.getValue().getSchemaType() instanceof XmlSchemaComplexType) { CobolAnnotations cobolAnnotations = new CobolAnnotations( entry.getValue()); XmlSchemaComplexType xsdComplexType = (XmlSchemaComplexType) entry .getValue().getSchemaType(); RootCompositeType compositeTypes = new RootCompositeType( cobolAnnotations.getCobolName()); String complexTypeName = getComplexTypeName(xsdComplexType); rootComplexTypes.put(complexTypeName, compositeTypes); visit(xsdComplexType, compositeTypes, complexTypeName); } } log.debug("visit XML Schema ended"); return rootComplexTypes; }  Map < String, RootCompositeType > build(XmlSchema xmlSchema);  }