Package com.sforce.ws.codegen
Class Generator
java.lang.Object
com.sforce.ws.codegen.Generator
- Direct Known Subclasses:
wsdlc
- Since:
- 184
- Author:
- hhildebrand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTemplate namesstatic final Stringprotected booleanstatic final Stringstatic final Stringprotected final Stringstatic final Stringstatic final Stringprotected final org.stringtemplate.v4.STGroupDirstatic final Stringstatic final Stringprotected final TypeMapper -
Constructor Summary
ConstructorsConstructorDescriptionGenerator(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFileToJar(String className, String classFile, JarOutputStream jar) protected voidprotected voidprotected voidgenerate(Definitions definitions, SfdcApiType sfdcApiType, Types types, File dir) protected Filegenerate(String packageName, String fileName, Object gen, org.stringtemplate.v4.ST template, File dir) voidprotected voidgenerateAggregateResultClasses(Definitions definitions, File dir) protected voidgenerateAggregateResultClasses(String packageName, File dir) protected voidgenerateClassFromComplexType(Types types, Schema schema, ComplexType complexType, File dir) protected voidgenerateClassFromSimpleType(Schema schema, SimpleType simpleType, File dir) protected voidgenerateComplexTypeClass(Types types, Schema schema, File dir) protected voidgenerateExtendedErrorDetailsClasses(Definitions definitions, File dir) protected voidgenerateJarFile(File jarFile, boolean standAlone, File dir) protected voidgenerateSimpleTypeClass(Schema schema, File dir) protected voidgenerateSObjectClass(Definitions definitions, File dir) protected voidgenerateSObjectInterface(Definitions definitions, File dir) protected voidgenerateTypeClass(Types types, Schema schema, File dir) protected voidgenerateTypeClasses(Types types, File dir) protected StringgetInterfacePackageName(String packageName) protected InputStreamprotected StringgetPackageName(Definitions definitions) protected WriternewSourceWriter(File source) Extension point for embedding applications, like Maven plugins, to provide custom I/O primitives.protected TypeMetadataConstructornewTypeMetadataConstructor(Types types, Schema schema, ComplexType complexType, File dir) Extension point for embedding applications, like Maven plugins, to customize TypeMetadataConstructor without changing system properties.protected booleanrequiresAggregateResultClass(Definitions definitions) protected booleanrequiresSObjectClass(Definitions definitions) protected booleanrequiresSObjectInterface(Definitions definitions)
-
Field Details
-
AGGREGATE_RESULT
Template names- See Also:
-
SIMPLE_TYPE
- See Also:
-
SOBJECT
- See Also:
-
ISOBJECT
- See Also:
-
EXTENDED_ERROR_DETAILS
- See Also:
-
IEXTENDED_ERROR_DETAILS
- See Also:
-
TYPE
- See Also:
-
TYPE_INTERFACE
- See Also:
-
typeMapper
-
javaFiles
-
packagePrefix
-
templates
protected final org.stringtemplate.v4.STGroupDir templates -
generateInterfaces
protected boolean generateInterfaces
-
-
Constructor Details
-
Generator
-
Generator
-
Generator
-
-
Method Details
-
generate
- Throws:
WsdlParseExceptionIOException
-
addFileToJar
protected void addFileToJar(String className, String classFile, JarOutputStream jar) throws IOException - Throws:
IOException
-
addRuntimeClasses
- Throws:
IOException
-
compileTypes
- Throws:
ToolsException
-
generate
protected void generate(Definitions definitions, SfdcApiType sfdcApiType, Types types, File dir) throws IOException - Throws:
IOException
-
generate
protected File generate(String packageName, String fileName, Object gen, org.stringtemplate.v4.ST template, File dir) throws IOException - Throws:
IOException
-
newSourceWriter
Extension point for embedding applications, like Maven plugins, to provide custom I/O primitives.- Throws:
IOException
-
generateAggregateResultClasses
- Throws:
IOException
-
generateAggregateResultClasses
- Throws:
IOException
-
generateExtendedErrorDetailsClasses
protected void generateExtendedErrorDetailsClasses(Definitions definitions, File dir) throws IOException - Throws:
IOException
-
generateClassFromComplexType
protected void generateClassFromComplexType(Types types, Schema schema, ComplexType complexType, File dir) throws IOException - Throws:
IOException
-
newTypeMetadataConstructor
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. -
generateClassFromSimpleType
protected void generateClassFromSimpleType(Schema schema, SimpleType simpleType, File dir) throws IOException - Throws:
IOException
-
generateComplexTypeClass
- Throws:
IOException
-
generateJarFile
- Throws:
IOException
-
generateSimpleTypeClass
- Throws:
IOException
-
generateSObjectClass
- Throws:
IOException
-
getInterfacePackageName
-
generateSObjectInterface
- Throws:
IOException
-
generateTypeClass
- Throws:
IOException
-
generateTypeClasses
- Throws:
IOException
-
getManifest
-
getPackageName
-
getRuntimeClasses
- Throws:
IOException
-
requiresAggregateResultClass
-
requiresSObjectClass
-
requiresSObjectInterface
-