Example #1
0
 protected boolean requiresSObjectClass(Definitions definitions) {
   return definitions.getApiType() == SfdcApiType.Partner
       || definitions.getApiType() == SfdcApiType.CrossInstance
       || definitions.getApiType() == SfdcApiType.Internal
       || definitions.getApiType() == SfdcApiType.ClientSync
       || definitions.getApiType() == SfdcApiType.SyncApi;
 }
Example #2
0
 public void generate(URL wsdl, File dest) throws WsdlParseException, ToolsException, IOException {
   Definitions definitions = WsdlFactory.create(wsdl);
   SfdcApiType sfdcApiType = definitions.getApiType();
   Types types = definitions.getTypes();
   generate(definitions, sfdcApiType, types, dest);
 }
Example #3
0
 protected boolean requiresAggregateResultClass(Definitions definitions) {
   return definitions.getApiType() == SfdcApiType.Enterprise;
 }
Example #4
0
 protected String getPackageName(Definitions definitions) {
   return NameMapper.getPackageName(definitions.getApiType().getSobjectNamespace(), packagePrefix);
 }