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