Modifier and Type | Field and Description |
---|---|
static String |
AGGREGATE_RESULT
Template names
|
static String |
EXTENDED_ERROR_DETAILS |
protected boolean |
generateInterfaces |
static String |
IEXTENDED_ERROR_DETAILS |
protected String |
interfacePackagePrefix |
static String |
ISOBJECT |
protected ArrayList<File> |
javaFiles |
protected String |
packagePrefix |
static String |
SIMPLE_TYPE |
static String |
SOBJECT |
protected org.stringtemplate.v4.STGroupDir |
templates |
static String |
TYPE |
static String |
TYPE_INTERFACE |
protected TypeMapper |
typeMapper |
Constructor and Description |
---|
Generator(String packagePrefix,
org.stringtemplate.v4.STGroupDir templates,
String interfacePackagePrefix) |
Generator(String packagePrefix,
org.stringtemplate.v4.STGroupDir templates,
String interfacePackagePrefix,
char startDelim,
char endDelim) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFileToJar(String className,
String classFile,
JarOutputStream jar) |
protected void |
addRuntimeClasses(JarOutputStream jar) |
protected void |
compileTypes(File dir) |
protected void |
generate(Definitions definitions,
SfdcApiType sfdcApiType,
Types types,
File dir) |
protected File |
generate(String packageName,
String fileName,
Object gen,
org.stringtemplate.v4.ST template,
File dir) |
void |
generate(URL wsdl,
File dest) |
protected void |
generateAggregateResultClasses(Definitions definitions,
File dir) |
protected void |
generateAggregateResultClasses(String packageName,
File dir) |
protected void |
generateClassFromComplexType(Types types,
Schema schema,
ComplexType complexType,
File dir) |
protected void |
generateClassFromSimpleType(Schema schema,
SimpleType simpleType,
File dir) |
protected void |
generateComplexTypeClass(Types types,
Schema schema,
File dir) |
protected void |
generateExtendedErrorDetailsClasses(Definitions definitions,
File dir) |
protected void |
generateJarFile(File jarFile,
boolean standAlone,
File dir) |
protected void |
generateSimpleTypeClass(Schema schema,
File dir) |
protected void |
generateSObjectClass(Definitions definitions,
File dir) |
protected void |
generateSObjectInterface(Definitions definitions,
File dir) |
protected void |
generateTypeClass(Types types,
Schema schema,
File dir) |
protected void |
generateTypeClasses(Types types,
File dir) |
protected String |
getInterfacePackageName(String packageName) |
protected InputStream |
getManifest() |
protected String |
getPackageName(Definitions definitions) |
protected ArrayList<String> |
getRuntimeClasses(ClassLoader cl) |
protected Writer |
newSourceWriter(File source)
Extension point for embedding applications, like Maven plugins, to provide custom I/O primitives.
|
protected TypeMetadataConstructor |
newTypeMetadataConstructor(Types types,
Schema schema,
ComplexType complexType,
File dir)
Extension point for embedding applications, like Maven plugins, to customize TypeMetadataConstructor without
changing system properties.
|
protected boolean |
requiresAggregateResultClass(Definitions definitions) |
protected boolean |
requiresSObjectClass(Definitions definitions) |
protected boolean |
requiresSObjectInterface(Definitions definitions) |
public static final String AGGREGATE_RESULT
public static final String SIMPLE_TYPE
public static final String SOBJECT
public static final String ISOBJECT
public static final String EXTENDED_ERROR_DETAILS
public static final String IEXTENDED_ERROR_DETAILS
public static final String TYPE
public static final String TYPE_INTERFACE
protected final TypeMapper typeMapper
protected final String packagePrefix
protected final String interfacePackagePrefix
protected final org.stringtemplate.v4.STGroupDir templates
protected boolean generateInterfaces
public Generator(String packagePrefix, org.stringtemplate.v4.STGroupDir templates, String interfacePackagePrefix) throws Exception
Exception
public void generate(URL wsdl, File dest) throws WsdlParseException, ToolsException, IOException
protected void addFileToJar(String className, String classFile, JarOutputStream jar) throws IOException
IOException
protected void addRuntimeClasses(JarOutputStream jar) throws IOException
IOException
protected void compileTypes(File dir) throws ToolsException
ToolsException
protected void generate(Definitions definitions, SfdcApiType sfdcApiType, Types types, File dir) throws IOException
IOException
protected File generate(String packageName, String fileName, Object gen, org.stringtemplate.v4.ST template, File dir) throws IOException
IOException
protected Writer newSourceWriter(File source) throws IOException
IOException
protected void generateAggregateResultClasses(Definitions definitions, File dir) throws IOException
IOException
protected void generateAggregateResultClasses(String packageName, File dir) throws IOException
IOException
protected void generateExtendedErrorDetailsClasses(Definitions definitions, File dir) throws IOException
IOException
protected void generateClassFromComplexType(Types types, Schema schema, ComplexType complexType, File dir) throws IOException
IOException
protected TypeMetadataConstructor newTypeMetadataConstructor(Types types, Schema schema, ComplexType complexType, File dir)
protected void generateClassFromSimpleType(Schema schema, SimpleType simpleType, File dir) throws IOException
IOException
protected void generateComplexTypeClass(Types types, Schema schema, File dir) throws IOException
IOException
protected void generateJarFile(File jarFile, boolean standAlone, File dir) throws IOException
IOException
protected void generateSimpleTypeClass(Schema schema, File dir) throws IOException
IOException
protected void generateSObjectClass(Definitions definitions, File dir) throws IOException
IOException
protected void generateSObjectInterface(Definitions definitions, File dir) throws IOException
IOException
protected void generateTypeClass(Types types, Schema schema, File dir) throws IOException
IOException
protected void generateTypeClasses(Types types, File dir) throws IOException
IOException
protected InputStream getManifest()
protected String getPackageName(Definitions definitions)
protected ArrayList<String> getRuntimeClasses(ClassLoader cl) throws IOException
IOException
protected boolean requiresAggregateResultClass(Definitions definitions)
protected boolean requiresSObjectClass(Definitions definitions)
protected boolean requiresSObjectInterface(Definitions definitions)
Copyright © 2016. All Rights Reserved.