Exemple #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;
 }
Exemple #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);
 }
Exemple #3
0
 protected boolean requiresAggregateResultClass(Definitions definitions) {
   return definitions.getApiType() == SfdcApiType.Enterprise;
 }
Exemple #4
0
 protected String getPackageName(Definitions definitions) {
   return NameMapper.getPackageName(definitions.getApiType().getSobjectNamespace(), packagePrefix);
 }