cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject [01/71] [abbrv] [partial] CLOUDSTACK-1444. Contains regenerated JAVA stubs and services.xml obtained by generating code from ec2 wsdl 2012-08-15 [Support for EC2 API version 2012-08-15]
Date Thu, 04 Jul 2013 06:51:09 GMT
Updated Branches:
  refs/heads/master-6-17-stable e80e3e84f -> 7e862be24


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e8298117/awsapi/src/com/amazon/ec2/DescribeConversionTasksResponseType.java
----------------------------------------------------------------------
diff --git a/awsapi/src/com/amazon/ec2/DescribeConversionTasksResponseType.java b/awsapi/src/com/amazon/ec2/DescribeConversionTasksResponseType.java
index 7a82336..184f4d4 100644
--- a/awsapi/src/com/amazon/ec2/DescribeConversionTasksResponseType.java
+++ b/awsapi/src/com/amazon/ec2/DescribeConversionTasksResponseType.java
@@ -1,25 +1,9 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
 
 /**
  * DescribeConversionTasksResponseType.java
  *
  * This file was auto-generated from WSDL
- * by the Apache Axis2 version: 1.5.1  Built on : Oct 19, 2009 (10:59:34 EDT)
+ * by the Apache Axis2 version: 1.5.6  Built on : Aug 30, 2011 (10:01:01 CEST)
  */
             
                 package com.amazon.ec2;
@@ -33,13 +17,13 @@
         implements org.apache.axis2.databinding.ADBBean{
         /* This type was generated from the piece of schema that had
                 name = DescribeConversionTasksResponseType
-                Namespace URI = http://ec2.amazonaws.com/doc/2010-11-15/
+                Namespace URI = http://ec2.amazonaws.com/doc/2012-08-15/
                 Namespace Prefix = ns1
                 */
             
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
-            if(namespace.equals("http://ec2.amazonaws.com/doc/2010-11-15/")){
+            if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
                 return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
@@ -48,6 +32,36 @@
         
 
                         /**
+                        * field for RequestId
+                        */
+
+                        
+                                    protected java.lang.String localRequestId ;
+                                
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.lang.String
+                           */
+                           public  java.lang.String getRequestId(){
+                               return localRequestId;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param RequestId
+                               */
+                               public void setRequestId(java.lang.String param){
+                            
+                                            this.localRequestId=param;
+                                    
+
+                               }
+                            
+
+                        /**
                         * field for ConversionTasks
                         */
 
@@ -160,7 +174,7 @@
                   if (serializeType){
                
 
-                   java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://ec2.amazonaws.com/doc/2010-11-15/");
+                   java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://ec2.amazonaws.com/doc/2012-08-15/");
                    if ((namespacePrefix != null) && (namespacePrefix.trim().length()
> 0)){
                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
                            namespacePrefix+":DescribeConversionTasksResponseType",
@@ -174,10 +188,44 @@
                
                    }
                
+                                    namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"requestId",
namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"requestId");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("requestId");
+                                    }
+                                
+
+                                          if (localRequestId==null){
+                                              // write the nil attribute
+                                              
+                                                     throw new org.apache.axis2.databinding.ADBException("requestId
cannot be null!!");
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(localRequestId);
+                                            
+                                          }
+                                    
+                                   xmlWriter.writeEndElement();
+                             
                                             if (localConversionTasks==null){
                                                  throw new org.apache.axis2.databinding.ADBException("conversionTasks
cannot be null!!");
                                             }
-                                           localConversionTasks.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","conversionTasks"),
+                                           localConversionTasks.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","conversionTasks"),
                                                factory,xmlWriter);
                                         
                     xmlWriter.writeEndElement();
@@ -342,7 +390,16 @@
                  java.util.ArrayList attribList = new java.util.ArrayList();
 
                 
-                            elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/",
+                                      elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
+                                                                      "requestId"));
+                                 
+                                        if (localRequestId != null){
+                                            elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRequestId));
+                                        } else {
+                                           throw new org.apache.axis2.databinding.ADBException("requestId
cannot be null!!");
+                                        }
+                                    
+                            elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
                                                                       "conversionTasks"));
                             
                             
@@ -429,7 +486,26 @@
                                     
                                     while (!reader.isStartElement() && !reader.isEndElement())
reader.next();
                                 
-                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","conversionTasks").equals(reader.getName())){
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","requestId").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setRequestId(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                else{
+                                    // A start element we are not expecting indicates an
invalid parameter was passed
+                                    throw new org.apache.axis2.databinding.ADBException("Unexpected
subelement " + reader.getLocalName());
+                                }
+                            
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement())
reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","conversionTasks").equals(reader.getName())){
                                 
                                                 object.setConversionTasks(com.amazon.ec2.ConversionTaskSetType.Factory.parse(reader));
                                               


Mime
View raw message