示例#1
0
 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));
 }
示例#2
0
 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));
 }
示例#3
0
 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));
 }
示例#4
0
 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));
 }