| 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 |
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,
boolean javaTime) |
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() |
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 org.stringtemplate.v4.STGroupDir templates
protected boolean generateInterfaces
public Generator(String packagePrefix, org.stringtemplate.v4.STGroupDir templates, String interfacePackagePrefix, char startDelim, char endDelim)
public Generator(String packagePrefix, org.stringtemplate.v4.STGroupDir templates, String interfacePackagePrefix)
public void generate(URL wsdl, File dest) throws WsdlParseException, IOException
WsdlParseExceptionIOExceptionprotected void addFileToJar(String className, String classFile, JarOutputStream jar) throws IOException
IOExceptionprotected void addRuntimeClasses(JarOutputStream jar) throws IOException
IOExceptionprotected void compileTypes()
throws ToolsException
ToolsExceptionprotected void generate(Definitions definitions, SfdcApiType sfdcApiType, Types types, File dir) throws IOException
IOExceptionprotected File generate(String packageName, String fileName, Object gen, org.stringtemplate.v4.ST template, File dir) throws IOException
IOExceptionprotected Writer newSourceWriter(File source) throws IOException
IOExceptionprotected void generateAggregateResultClasses(Definitions definitions, File dir) throws IOException
IOExceptionprotected void generateAggregateResultClasses(String packageName, File dir) throws IOException
IOExceptionprotected void generateExtendedErrorDetailsClasses(Definitions definitions, File dir) throws IOException
IOExceptionprotected void generateClassFromComplexType(Types types, Schema schema, ComplexType complexType, File dir) throws IOException
IOExceptionprotected TypeMetadataConstructor newTypeMetadataConstructor(Types types, Schema schema, ComplexType complexType, File dir)
protected void generateClassFromSimpleType(Schema schema, SimpleType simpleType, File dir) throws IOException
IOExceptionprotected void generateComplexTypeClass(Types types, Schema schema, File dir) throws IOException
IOExceptionprotected void generateJarFile(File jarFile, boolean standAlone, File dir) throws IOException
IOExceptionprotected void generateSimpleTypeClass(Schema schema, File dir) throws IOException
IOExceptionprotected void generateSObjectClass(Definitions definitions, File dir) throws IOException
IOExceptionprotected void generateSObjectInterface(Definitions definitions, File dir) throws IOException
IOExceptionprotected void generateTypeClass(Types types, Schema schema, File dir) throws IOException
IOExceptionprotected void generateTypeClasses(Types types, File dir) throws IOException
IOExceptionprotected InputStream getManifest()
protected String getPackageName(Definitions definitions)
protected ArrayList<String> getRuntimeClasses(ClassLoader cl) throws IOException
IOExceptionprotected boolean requiresAggregateResultClass(Definitions definitions)
protected boolean requiresSObjectClass(Definitions definitions)
protected boolean requiresSObjectInterface(Definitions definitions)
Copyright © 2020. All rights reserved.