protected void generateClassFromComplexType( Types types, Schema schema, ComplexType complexType, File dir) throws IOException { ComplexClassMetadata gen = newTypeMetadataConstructor(types, schema, complexType, dir).generateMetadata(); ST template = templates.getInstanceOf(TYPE); javaFiles.add(generate(gen.getPackageName(), gen.getClassName() + ".java", gen, template, dir)); }
protected void generateSObjectClass(Definitions definitions, File dir) throws IOException { String packageName = getPackageName(definitions); ClassMetadata gen = new ClassMetadata(packageName, null); ST template = templates.getInstanceOf(SOBJECT); javaFiles.add(generate(packageName, SOBJECT_JAVA, gen, template, dir)); }
protected void generateClassFromSimpleType(Schema schema, SimpleType simpleType, File dir) throws IOException { SimpleClassMetadata gen = new SimpleClassMetadata(schema, simpleType, typeMapper); ST template = templates.getInstanceOf(SIMPLE_TYPE); javaFiles.add(generate(gen.getPackageName(), gen.getClassName() + ".java", gen, template, dir)); }
protected void generateAggregateResultClasses(String packageName, File dir) throws IOException { ClassMetadata gen = new ClassMetadata(packageName, null); ST template = templates.getInstanceOf(AGGREGATE_RESULT); javaFiles.add(generate(packageName, AGGREGATE_RESULT_JAVA, gen, template, dir)); }