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