mirror of https://github.com/apache/cloudstack.git
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]
Signed-off-by: Likitha Shetty <likitha.shetty@citrix.com>
This commit is contained in:
parent
e4ba348ef0
commit
33df54edaf
|
|
@ -1,393 +1,589 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<!-- This file was auto-generated from WSDL -->
|
||||
<!-- by the Apache Axis2 version: 1.5 Built on : Apr 30, 2009 (06:07:24 EDT) -->
|
||||
<!-- by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:00:16 CEST) -->
|
||||
<serviceGroup>
|
||||
<service name="AmazonEC2" class="com.cloud.bridge.lifecycle.ServiceEngineLifecycle">
|
||||
<service name="AmazonEC2">
|
||||
<messageReceivers>
|
||||
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="com.amazon.ec2.AmazonEC2MessageReceiverInOut"/>
|
||||
</messageReceivers>
|
||||
<parameter name="ServiceClass">com.cloud.bridge.service.EC2SoapService</parameter>
|
||||
<parameter name="ServiceClass">com.amazon.ec2.AmazonEC2Skeleton</parameter>
|
||||
<parameter name="useOriginalwsdl">true</parameter>
|
||||
<parameter name="modifyUserWSDLPortAddress">true</parameter>
|
||||
<operation name="ModifyInstanceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ModifyInstanceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ModifyInstanceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="StopInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>StopInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/StopInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ConfirmProductInstance" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ConfirmProductInstance</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ConfirmProductInstanceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RequestSpotInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>RequestSpotInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/RequestSpotInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSecurityGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteSecurityGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteSecurityGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateSpotDatafeedSubscription" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateSpotDatafeedSubscription</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateSpotDatafeedSubscriptionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RegisterImage" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>RegisterImage</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/RegisterImageResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteKeyPair" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteKeyPair</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteKeyPairResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSubnet" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteSubnet</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteSubnetResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ResetSnapshotAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ResetSnapshotAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ResetSnapshotAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteCustomerGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteCustomerGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteCustomerGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="StartInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>StartInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/StartInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeAddresses" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeAddresses</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeAddressesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateSubnet" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateSubnet</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateSubnetResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="PurchaseReservedInstancesOffering" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>PurchaseReservedInstancesOffering</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/PurchaseReservedInstancesOfferingResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpnConnection" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateVpnConnection</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateVpnConnectionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeImageAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeImageAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeImageAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateSnapshot" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateSnapshot</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateSnapshotResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSpotPriceHistory" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSpotPriceHistory</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSpotPriceHistoryResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribePlacementGroups" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<operation name="DescribePlacementGroups" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribePlacementGroups</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribePlacementGroupsResponse</outputActionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribePlacementGroupsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeLicenses" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeLicenses</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeLicensesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSpotInstanceRequests" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSpotInstanceRequests</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSpotInstanceRequestsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="TerminateInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>TerminateInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/TerminateInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RevokeSecurityGroupIngress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>RevokeSecurityGroupIngress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/RevokeSecurityGroupIngressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ImportKeyPair" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ImportKeyPair</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ImportKeyPairResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreatePlacementGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreatePlacementGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreatePlacementGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AllocateAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>AllocateAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/AllocateAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeAvailabilityZones" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeAvailabilityZones</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeAvailabilityZonesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteVpc" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteVpc</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteVpcResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSnapshot" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteSnapshot</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteSnapshotResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSubnets" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSubnets</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSubnetsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpc" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateVpc</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateVpcResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ActivateLicense" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ActivateLicense</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ActivateLicenseResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSnapshotAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSnapshotAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSnapshotAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeTags" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeTags</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeTagsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVpnConnections" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeVpnConnections</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeVpnConnectionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AuthorizeSecurityGroupIngress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>AuthorizeSecurityGroupIngress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/AuthorizeSecurityGroupIngressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeReservedInstancesOfferings" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeReservedInstancesOfferings</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeReservedInstancesOfferingsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVpcs" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeVpcs</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeVpcsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteTags" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteTags</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteTagsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="UnmonitorInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>UnmonitorInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/UnmonitorInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RebootInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>RebootInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/RebootInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AssociateDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>AssociateDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/AssociateDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeInstanceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeInstanceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeInstanceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeletePlacementGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeletePlacementGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeletePlacementGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateKeyPair" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateKeyPair</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateKeyPairResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="BundleInstance" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>BundleInstance</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/BundleInstanceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AttachVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>AttachVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/AttachVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeKeyPairs" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeKeyPairs</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeKeyPairsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ResetImageAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ResetImageAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ResetImageAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateTags" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateTags</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateTagsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVolumes" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeVolumes</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeVolumesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DetachVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DetachVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DetachVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CancelBundleTask" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CancelBundleTask</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CancelBundleTaskResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="GetConsoleOutput" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>GetConsoleOutput</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/GetConsoleOutputResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DetachVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DetachVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DetachVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RunInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>RunInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/RunInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ResetInstanceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ResetInstanceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ResetInstanceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeCustomerGateways" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeCustomerGateways</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeCustomerGatewaysResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AssociateAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>AssociateAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/AssociateAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReleaseAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ReleaseAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ReleaseAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSpotDatafeedSubscription" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteSpotDatafeedSubscription</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteSpotDatafeedSubscriptionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSecurityGroups" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSecurityGroups</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSecurityGroupsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateImage" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateImage</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateImageResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="GetPasswordData" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>GetPasswordData</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/GetPasswordDataResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeBundleTasks" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeBundleTasks</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeBundleTasksResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AttachVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>AttachVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/AttachVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DisassociateAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DisassociateAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DisassociateAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeregisterImage" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeregisterImage</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeregisterImageResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteVpnConnection" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DeleteVpnConnection</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeleteVpnConnectionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeImages" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeImages</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeImagesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateSecurityGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<operation name="CreateSecurityGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateSecurityGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateSecurityGroupResponse</outputActionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateSecurityGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CreateVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateVpnGatewayResponse</outputActionMapping>
|
||||
<operation name="ResetNetworkInterfaceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ResetNetworkInterfaceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ResetNetworkInterfaceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifySnapshotAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ModifySnapshotAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ModifySnapshotAttributeResponse</outputActionMapping>
|
||||
<operation name="CreateDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CancelSpotInstanceRequests" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>CancelSpotInstanceRequests</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CancelSpotInstanceRequestsResponse</outputActionMapping>
|
||||
<operation name="CreateRouteTable" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateRouteTable</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateRouteTableResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeactivateLicense" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<operation name="DescribeSubnets" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSubnets</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSubnetsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeactivateLicense" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeactivateLicense</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DeactivateLicenseResponse</outputActionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeactivateLicenseResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="MonitorInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>MonitorInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/MonitorInstancesResponse</outputActionMapping>
|
||||
<operation name="DeleteVpc" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteVpc</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteVpcResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifyImageAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>ModifyImageAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/ModifyImageAttributeResponse</outputActionMapping>
|
||||
<operation name="CancelSpotInstanceRequests" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CancelSpotInstanceRequests</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CancelSpotInstanceRequestsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSnapshots" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSnapshots</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSnapshotsResponse</outputActionMapping>
|
||||
<operation name="CreateSubnet" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateSubnet</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateSubnetResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateCustomerGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<operation name="DeleteVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateNetworkAclEntry" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateNetworkAclEntry</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateNetworkAclEntryResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RequestSpotInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>RequestSpotInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/RequestSpotInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVolumeAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeVolumeAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeVolumeAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AssociateDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AssociateDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AssociateDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeTags" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeTags</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeTagsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ImportKeyPair" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ImportKeyPair</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ImportKeyPairResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteNetworkInterface" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteNetworkInterface</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteNetworkInterfaceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVpcs" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeVpcs</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeVpcsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeLicenses" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeLicenses</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeLicensesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="BundleInstance" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>BundleInstance</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/BundleInstanceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVpnConnections" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeVpnConnections</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeVpnConnectionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeImages" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeImages</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeImagesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateInternetGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateInternetGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateInternetGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DisassociateRouteTable" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DisassociateRouteTable</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DisassociateRouteTableResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReplaceNetworkAclEntry" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ReplaceNetworkAclEntry</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ReplaceNetworkAclEntryResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AuthorizeSecurityGroupIngress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AuthorizeSecurityGroupIngress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AuthorizeSecurityGroupIngressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSnapshotAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSnapshotAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSnapshotAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ResetInstanceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ResetInstanceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ResetInstanceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateTags" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateTags</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateTagsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AuthorizeSecurityGroupEgress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AuthorizeSecurityGroupEgress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AuthorizeSecurityGroupEgressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AssociateAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AssociateAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AssociateAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeImageAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeImageAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeImageAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSpotPriceHistory" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSpotPriceHistory</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSpotPriceHistoryResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifySnapshotAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ModifySnapshotAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ModifySnapshotAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSpotInstanceRequests" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSpotInstanceRequests</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSpotInstanceRequestsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ImportInstance" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ImportInstance</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ImportInstanceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeKeyPairs" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeKeyPairs</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeKeyPairsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RevokeSecurityGroupIngress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>RevokeSecurityGroupIngress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/RevokeSecurityGroupIngressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreatePlacementGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreatePlacementGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreatePlacementGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteNetworkAclEntry" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteNetworkAclEntry</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteNetworkAclEntryResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ActivateLicense" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ActivateLicense</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ActivateLicenseResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteRouteTable" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteRouteTable</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteRouteTableResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="UnmonitorInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>UnmonitorInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/UnmonitorInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="StartInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>StartInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/StartInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ConfirmProductInstance" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ConfirmProductInstance</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ConfirmProductInstanceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeNetworkInterfaceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeNetworkInterfaceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeNetworkInterfaceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RunInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>RunInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/RunInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateReservedInstancesListing" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateReservedInstancesListing</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateReservedInstancesListingResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateCustomerGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateCustomerGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/CreateCustomerGatewayResponse</outputActionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateCustomerGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSpotDatafeedSubscription" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeSpotDatafeedSubscription</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeSpotDatafeedSubscriptionResponse</outputActionMapping>
|
||||
<operation name="CreateNetworkAcl" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateNetworkAcl</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateNetworkAclResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeReservedInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<operation name="ResetImageAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ResetImageAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ResetImageAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifyVolumeAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ModifyVolumeAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ModifyVolumeAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeReservedInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeReservedInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeReservedInstancesResponse</outputActionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeReservedInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeRegions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<actionMapping>DescribeRegions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeRegionsResponse</outputActionMapping>
|
||||
<operation name="ResetSnapshotAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ResetSnapshotAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ResetSnapshotAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVpnGateways" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2010-11-15/">
|
||||
<operation name="DeleteVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeAvailabilityZones" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeAvailabilityZones</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeAvailabilityZonesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpnConnection" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateVpnConnection</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateVpnConnectionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CancelBundleTask" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CancelBundleTask</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CancelBundleTaskResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReplaceNetworkAclAssociation" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ReplaceNetworkAclAssociation</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ReplaceNetworkAclAssociationResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DetachVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DetachVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DetachVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSnapshots" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSnapshots</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSnapshotsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSubnet" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteSubnet</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteSubnetResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeBundleTasks" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeBundleTasks</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeBundleTasksResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateKeyPair" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateKeyPair</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateKeyPairResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateImage" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateImage</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateImageResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="EnableVgwRoutePropagation" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>EnableVgwRoutePropagation</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/EnableVgwRoutePropagationResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="UnassignPrivateIpAddresses" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>UnassignPrivateIpAddresses</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/UnassignPrivateIpAddressesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeregisterImage" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeregisterImage</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeregisterImageResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteVpnConnectionRoute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteVpnConnectionRoute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteVpnConnectionRouteResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifyImageAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ModifyImageAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ModifyImageAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CancelConversionTask" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CancelConversionTask</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CancelConversionTaskResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVolumes" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeVolumes</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeVolumesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CancelReservedInstancesListing" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CancelReservedInstancesListing</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CancelReservedInstancesListingResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="GetPasswordData" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>GetPasswordData</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/GetPasswordDataResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AllocateAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AllocateAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AllocateAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSecurityGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteSecurityGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteSecurityGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeletePlacementGroup" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeletePlacementGroup</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeletePlacementGroupResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DisassociateAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DisassociateAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DisassociateAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSpotDatafeedSubscription" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSpotDatafeedSubscription</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSpotDatafeedSubscriptionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeNetworkAcls" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeNetworkAcls</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeNetworkAclsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="EnableVolumeIO" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>EnableVolumeIO</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/EnableVolumeIOResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AttachVpnGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AttachVpnGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AttachVpnGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeInternetGateways" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeInternetGateways</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeInternetGatewaysResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeDhcpOptions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeDhcpOptions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeDhcpOptionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateSpotDatafeedSubscription" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateSpotDatafeedSubscription</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateSpotDatafeedSubscriptionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeReservedInstancesListings" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeReservedInstancesListings</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeReservedInstancesListingsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeInstanceStatus" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeInstanceStatus</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeInstanceStatusResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifyNetworkInterfaceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ModifyNetworkInterfaceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ModifyNetworkInterfaceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DisableVgwRoutePropagation" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DisableVgwRoutePropagation</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DisableVgwRoutePropagationResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVolumeStatus" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeVolumeStatus</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeVolumeStatusResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DetachNetworkInterface" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DetachNetworkInterface</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DetachNetworkInterfaceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeSecurityGroups" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeSecurityGroups</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeSecurityGroupsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeNetworkInterfaces" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeNetworkInterfaces</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeNetworkInterfacesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteKeyPair" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteKeyPair</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteKeyPairResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateSnapshot" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateSnapshot</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateSnapshotResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeVpnGateways" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeVpnGateways</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2010-11-15/AmazonEC2PortType/DescribeVpnGatewaysResponse</outputActionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeVpnGatewaysResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteTags" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteTags</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteTagsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSnapshot" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteSnapshot</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteSnapshotResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteCustomerGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteCustomerGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteCustomerGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CancelExportTask" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CancelExportTask</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CancelExportTaskResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RegisterImage" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>RegisterImage</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/RegisterImageResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DetachVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DetachVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DetachVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="StopInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>StopInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/StopInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateRoute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateRoute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateRouteResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReleaseAddress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ReleaseAddress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ReleaseAddressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeRouteTables" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeRouteTables</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeRouteTablesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeCustomerGateways" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeCustomerGateways</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeCustomerGatewaysResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteNetworkAcl" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteNetworkAcl</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteNetworkAclResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteRoute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteRoute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteRouteResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RebootInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>RebootInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/RebootInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ModifyInstanceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ModifyInstanceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ModifyInstanceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="TerminateInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>TerminateInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/TerminateInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpnConnectionRoute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateVpnConnectionRoute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateVpnConnectionRouteResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeConversionTasks" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeConversionTasks</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeConversionTasksResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeAddresses" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeAddresses</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeAddressesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeInstanceAttribute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeInstanceAttribute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeInstanceAttributeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AttachInternetGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AttachInternetGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AttachInternetGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateVpc" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateVpc</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateVpcResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReplaceRouteTableAssociation" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ReplaceRouteTableAssociation</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ReplaceRouteTableAssociationResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AssociateRouteTable" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AssociateRouteTable</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AssociateRouteTableResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DetachInternetGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DetachInternetGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DetachInternetGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="PurchaseReservedInstancesOffering" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>PurchaseReservedInstancesOffering</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/PurchaseReservedInstancesOfferingResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ImportVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ImportVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ImportVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeExportTasks" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeExportTasks</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeExportTasksResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateInstanceExportTask" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateInstanceExportTask</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateInstanceExportTaskResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AssignPrivateIpAddresses" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AssignPrivateIpAddresses</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AssignPrivateIpAddressesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReportInstanceStatus" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ReportInstanceStatus</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ReportInstanceStatusResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeReservedInstancesOfferings" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeReservedInstancesOfferings</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeReservedInstancesOfferingsResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteVpnConnection" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteVpnConnection</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteVpnConnectionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteInternetGateway" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteInternetGateway</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteInternetGatewayResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DeleteSpotDatafeedSubscription" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DeleteSpotDatafeedSubscription</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DeleteSpotDatafeedSubscriptionResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AttachNetworkInterface" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AttachNetworkInterface</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AttachNetworkInterfaceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="CreateNetworkInterface" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>CreateNetworkInterface</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/CreateNetworkInterfaceResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="RevokeSecurityGroupEgress" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>RevokeSecurityGroupEgress</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/RevokeSecurityGroupEgressResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="MonitorInstances" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>MonitorInstances</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/MonitorInstancesResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="ReplaceRoute" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>ReplaceRoute</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/ReplaceRouteResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="AttachVolume" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>AttachVolume</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/AttachVolumeResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="GetConsoleOutput" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>GetConsoleOutput</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/GetConsoleOutputResponse</outputActionMapping>
|
||||
</operation>
|
||||
<operation name="DescribeRegions" mep="http://www.w3.org/ns/wsdl/in-out" namespace="http://ec2.amazonaws.com/doc/2012-08-15/">
|
||||
<actionMapping>DescribeRegions</actionMapping>
|
||||
<outputActionMapping>http://ec2.amazonaws.com/doc/2012-08-15/AmazonEC2PortType/DescribeRegionsResponse</outputActionMapping>
|
||||
</operation>
|
||||
</service>
|
||||
</serviceGroup>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* ActivateLicense.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"ActivateLicense",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","ActivateLicense").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ActivateLicense").equals(reader.getName())){
|
||||
|
||||
object.setActivateLicense(com.amazon.ec2.ActivateLicenseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* ActivateLicenseResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"ActivateLicenseResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","ActivateLicenseResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ActivateLicenseResponse").equals(reader.getName())){
|
||||
|
||||
object.setActivateLicenseResponse(com.amazon.ec2.ActivateLicenseResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* ActivateLicenseResponseType.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 = ActivateLicenseResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":ActivateLicenseResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -429,7 +413,7 @@
|
|||
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){
|
||||
|
|
@ -438,7 +422,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -522,7 +506,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -541,7 +525,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","return").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* ActivateLicenseType.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 = ActivateLicenseType
|
||||
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();
|
||||
|
|
@ -190,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+":ActivateLicenseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -429,7 +413,7 @@
|
|||
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/",
|
||||
"licenseId"));
|
||||
|
||||
if (localLicenseId != null){
|
||||
|
|
@ -438,7 +422,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("licenseId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"capacity"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -522,7 +506,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","licenseId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","licenseId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -541,7 +525,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","capacity").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","capacity").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AllocateAddress.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AllocateAddress",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AllocateAddress").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AllocateAddress").equals(reader.getName())){
|
||||
|
||||
object.setAllocateAddress(com.amazon.ec2.AllocateAddressType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AllocateAddressResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AllocateAddressResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AllocateAddressResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AllocateAddressResponse").equals(reader.getName())){
|
||||
|
||||
object.setAllocateAddressResponse(com.amazon.ec2.AllocateAddressResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AllocateAddressResponseType.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 = AllocateAddressResponseType
|
||||
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();
|
||||
|
|
@ -107,6 +91,80 @@
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for Domain
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localDomain ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getDomain(){
|
||||
return localDomain;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param Domain
|
||||
*/
|
||||
public void setDomain(java.lang.String param){
|
||||
|
||||
this.localDomain=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for AllocationId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localAllocationId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localAllocationIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getAllocationId(){
|
||||
return localAllocationId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AllocationId
|
||||
*/
|
||||
public void setAllocationId(java.lang.String param){
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localAllocationIdTracker = true;
|
||||
} else {
|
||||
localAllocationIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localAllocationId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
|
|
@ -190,7 +248,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+":AllocateAddressResponseType",
|
||||
|
|
@ -204,7 +262,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +296,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -272,6 +330,74 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
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,"domain", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"domain");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("domain");
|
||||
}
|
||||
|
||||
|
||||
if (localDomain==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("domain cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localDomain);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
if (localAllocationIdTracker){
|
||||
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,"allocationId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"allocationId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("allocationId");
|
||||
}
|
||||
|
||||
|
||||
if (localAllocationId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localAllocationId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
|
|
@ -434,7 +560,7 @@
|
|||
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){
|
||||
|
|
@ -443,7 +569,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"publicIp"));
|
||||
|
||||
if (localPublicIp != null){
|
||||
|
|
@ -452,6 +578,24 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("publicIp cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"domain"));
|
||||
|
||||
if (localDomain != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDomain));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("domain cannot be null!!");
|
||||
}
|
||||
if (localAllocationIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"allocationId"));
|
||||
|
||||
if (localAllocationId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllocationId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
|
||||
}
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
|
@ -530,7 +674,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -549,7 +693,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","publicIp").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","publicIp").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -564,7 +708,44 @@
|
|||
// 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/","domain").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setDomain(
|
||||
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/","allocationId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAllocationId(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AllocateAddressType.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 = AllocateAddressType
|
||||
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();
|
||||
|
|
@ -47,6 +31,50 @@
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* field for Domain
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localDomain ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localDomainTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getDomain(){
|
||||
return localDomain;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param Domain
|
||||
*/
|
||||
public void setDomain(java.lang.String param){
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localDomainTracker = true;
|
||||
} else {
|
||||
localDomainTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localDomain=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
|
|
@ -130,7 +158,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+":AllocateAddressType",
|
||||
|
|
@ -143,7 +171,41 @@
|
|||
|
||||
|
||||
}
|
||||
|
||||
if (localDomainTracker){
|
||||
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,"domain", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"domain");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("domain");
|
||||
}
|
||||
|
||||
|
||||
if (localDomain==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("domain cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localDomain);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
|
|
@ -305,7 +367,16 @@
|
|||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
if (localDomainTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"domain"));
|
||||
|
||||
if (localDomain != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDomain));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("domain cannot be null!!");
|
||||
}
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
|
@ -381,6 +452,31 @@
|
|||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","domain").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setDomain(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
if (reader.isStartElement())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,483 @@
|
|||
|
||||
/**
|
||||
* AllocationIdSetItemType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AllocationIdSetItemType bean class
|
||||
*/
|
||||
|
||||
public class AllocationIdSetItemType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AllocationIdSetItemType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AllocationId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localAllocationId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getAllocationId(){
|
||||
return localAllocationId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AllocationId
|
||||
*/
|
||||
public void setAllocationId(java.lang.String param){
|
||||
|
||||
this.localAllocationId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AllocationIdSetItemType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AllocationIdSetItemType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AllocationIdSetItemType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"allocationId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"allocationId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("allocationId");
|
||||
}
|
||||
|
||||
|
||||
if (localAllocationId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localAllocationId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"allocationId"));
|
||||
|
||||
if (localAllocationId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllocationId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AllocationIdSetItemType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AllocationIdSetItemType object =
|
||||
new AllocationIdSetItemType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AllocationIdSetItemType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AllocationIdSetItemType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","allocationId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAllocationId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,560 @@
|
|||
|
||||
/**
|
||||
* AllocationIdSetType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AllocationIdSetType bean class
|
||||
*/
|
||||
|
||||
public class AllocationIdSetType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AllocationIdSetType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for Item
|
||||
* This was an Array!
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AllocationIdSetItemType[] localItem ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localItemTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AllocationIdSetItemType[]
|
||||
*/
|
||||
public com.amazon.ec2.AllocationIdSetItemType[] getItem(){
|
||||
return localItem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* validate the array for Item
|
||||
*/
|
||||
protected void validateItem(com.amazon.ec2.AllocationIdSetItemType[] param){
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param Item
|
||||
*/
|
||||
public void setItem(com.amazon.ec2.AllocationIdSetItemType[] param){
|
||||
|
||||
validateItem(param);
|
||||
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localItemTracker = true;
|
||||
} else {
|
||||
localItemTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localItem=param;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated add method for the array for convenience
|
||||
* @param param com.amazon.ec2.AllocationIdSetItemType
|
||||
*/
|
||||
public void addItem(com.amazon.ec2.AllocationIdSetItemType param){
|
||||
if (localItem == null){
|
||||
localItem = new com.amazon.ec2.AllocationIdSetItemType[]{};
|
||||
}
|
||||
|
||||
|
||||
//update the setting tracker
|
||||
localItemTracker = true;
|
||||
|
||||
|
||||
java.util.List list =
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem);
|
||||
list.add(param);
|
||||
this.localItem =
|
||||
(com.amazon.ec2.AllocationIdSetItemType[])list.toArray(
|
||||
new com.amazon.ec2.AllocationIdSetItemType[list.size()]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AllocationIdSetType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AllocationIdSetType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AllocationIdSetType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (localItemTracker){
|
||||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
// we don't have to do any thing since minOccures is zero
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("item cannot be null!!");
|
||||
|
||||
}
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
if (localItemTracker){
|
||||
if (localItem!=null) {
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
||||
// nothing to do
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("item cannot be null!!");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AllocationIdSetType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AllocationIdSetType object =
|
||||
new AllocationIdSetType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AllocationIdSetType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AllocationIdSetType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
java.util.ArrayList list1 = new java.util.ArrayList();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
// Process the array and step past its final element's end.
|
||||
list1.add(com.amazon.ec2.AllocationIdSetItemType.Factory.parse(reader));
|
||||
|
||||
//loop until we find a start element that is not part of this array
|
||||
boolean loopDone1 = false;
|
||||
while(!loopDone1){
|
||||
// We should be at the end element, but make sure
|
||||
while (!reader.isEndElement())
|
||||
reader.next();
|
||||
// Step out of this element
|
||||
reader.next();
|
||||
// Step to next element event.
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
if (reader.isEndElement()){
|
||||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.AllocationIdSetItemType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
loopDone1 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// call the converter utility to convert and set the array
|
||||
|
||||
object.setItem((com.amazon.ec2.AllocationIdSetItemType[])
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
|
||||
com.amazon.ec2.AllocationIdSetItemType.class,
|
||||
list1));
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
if (reader.isStartElement())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AssignPrivateIpAddresses.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssignPrivateIpAddresses bean class
|
||||
*/
|
||||
|
||||
public class AssignPrivateIpAddresses
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssignPrivateIpAddresses",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AssignPrivateIpAddresses
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AssignPrivateIpAddressesType localAssignPrivateIpAddresses ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AssignPrivateIpAddressesType
|
||||
*/
|
||||
public com.amazon.ec2.AssignPrivateIpAddressesType getAssignPrivateIpAddresses(){
|
||||
return localAssignPrivateIpAddresses;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AssignPrivateIpAddresses
|
||||
*/
|
||||
public void setAssignPrivateIpAddresses(com.amazon.ec2.AssignPrivateIpAddressesType param){
|
||||
|
||||
this.localAssignPrivateIpAddresses=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssignPrivateIpAddresses.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAssignPrivateIpAddresses==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAssignPrivateIpAddresses.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAssignPrivateIpAddresses.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssignPrivateIpAddresses parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssignPrivateIpAddresses object =
|
||||
new AssignPrivateIpAddresses();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssignPrivateIpAddresses").equals(reader.getName())){
|
||||
|
||||
object.setAssignPrivateIpAddresses(com.amazon.ec2.AssignPrivateIpAddressesType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AssignPrivateIpAddressesResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssignPrivateIpAddressesResponse bean class
|
||||
*/
|
||||
|
||||
public class AssignPrivateIpAddressesResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssignPrivateIpAddressesResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AssignPrivateIpAddressesResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AssignPrivateIpAddressesResponseType localAssignPrivateIpAddressesResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AssignPrivateIpAddressesResponseType
|
||||
*/
|
||||
public com.amazon.ec2.AssignPrivateIpAddressesResponseType getAssignPrivateIpAddressesResponse(){
|
||||
return localAssignPrivateIpAddressesResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AssignPrivateIpAddressesResponse
|
||||
*/
|
||||
public void setAssignPrivateIpAddressesResponse(com.amazon.ec2.AssignPrivateIpAddressesResponseType param){
|
||||
|
||||
this.localAssignPrivateIpAddressesResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssignPrivateIpAddressesResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAssignPrivateIpAddressesResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAssignPrivateIpAddressesResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAssignPrivateIpAddressesResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssignPrivateIpAddressesResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssignPrivateIpAddressesResponse object =
|
||||
new AssignPrivateIpAddressesResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssignPrivateIpAddressesResponse").equals(reader.getName())){
|
||||
|
||||
object.setAssignPrivateIpAddressesResponse(com.amazon.ec2.AssignPrivateIpAddressesResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,567 @@
|
|||
|
||||
/**
|
||||
* AssignPrivateIpAddressesResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssignPrivateIpAddressesResponseType bean class
|
||||
*/
|
||||
|
||||
public class AssignPrivateIpAddressesResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssignPrivateIpAddressesResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 _return
|
||||
*/
|
||||
|
||||
|
||||
protected boolean local_return ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean get_return(){
|
||||
return local_return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param _return
|
||||
*/
|
||||
public void set_return(boolean param){
|
||||
|
||||
this.local_return=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssignPrivateIpAddressesResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssignPrivateIpAddressesResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssignPrivateIpAddressesResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
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,"return", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"return");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("return");
|
||||
}
|
||||
|
||||
if (false) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssignPrivateIpAddressesResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssignPrivateIpAddressesResponseType object =
|
||||
new AssignPrivateIpAddressesResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AssignPrivateIpAddressesResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AssignPrivateIpAddressesResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.set_return(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,483 @@
|
|||
|
||||
/**
|
||||
* AssignPrivateIpAddressesSetItemRequestType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssignPrivateIpAddressesSetItemRequestType bean class
|
||||
*/
|
||||
|
||||
public class AssignPrivateIpAddressesSetItemRequestType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssignPrivateIpAddressesSetItemRequestType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for PrivateIpAddress
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localPrivateIpAddress ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getPrivateIpAddress(){
|
||||
return localPrivateIpAddress;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param PrivateIpAddress
|
||||
*/
|
||||
public void setPrivateIpAddress(java.lang.String param){
|
||||
|
||||
this.localPrivateIpAddress=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssignPrivateIpAddressesSetItemRequestType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssignPrivateIpAddressesSetItemRequestType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssignPrivateIpAddressesSetItemRequestType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"privateIpAddress", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"privateIpAddress");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("privateIpAddress");
|
||||
}
|
||||
|
||||
|
||||
if (localPrivateIpAddress==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("privateIpAddress cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localPrivateIpAddress);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"privateIpAddress"));
|
||||
|
||||
if (localPrivateIpAddress != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrivateIpAddress));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("privateIpAddress cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssignPrivateIpAddressesSetItemRequestType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssignPrivateIpAddressesSetItemRequestType object =
|
||||
new AssignPrivateIpAddressesSetItemRequestType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AssignPrivateIpAddressesSetItemRequestType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AssignPrivateIpAddressesSetItemRequestType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","privateIpAddress").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setPrivateIpAddress(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,548 @@
|
|||
|
||||
/**
|
||||
* AssignPrivateIpAddressesSetRequestType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssignPrivateIpAddressesSetRequestType bean class
|
||||
*/
|
||||
|
||||
public class AssignPrivateIpAddressesSetRequestType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssignPrivateIpAddressesSetRequestType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for Item
|
||||
* This was an Array!
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[] localItem ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[]
|
||||
*/
|
||||
public com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[] getItem(){
|
||||
return localItem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* validate the array for Item
|
||||
*/
|
||||
protected void validateItem(com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[] param){
|
||||
|
||||
if ((param != null) && (param.length < 1)){
|
||||
throw new java.lang.RuntimeException();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param Item
|
||||
*/
|
||||
public void setItem(com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[] param){
|
||||
|
||||
validateItem(param);
|
||||
|
||||
|
||||
this.localItem=param;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated add method for the array for convenience
|
||||
* @param param com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType
|
||||
*/
|
||||
public void addItem(com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType param){
|
||||
if (localItem == null){
|
||||
localItem = new com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[]{};
|
||||
}
|
||||
|
||||
|
||||
|
||||
java.util.List list =
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem);
|
||||
list.add(param);
|
||||
this.localItem =
|
||||
(com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[])list.toArray(
|
||||
new com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[list.size()]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssignPrivateIpAddressesSetRequestType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssignPrivateIpAddressesSetRequestType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssignPrivateIpAddressesSetRequestType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("item cannot be null!!");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("item cannot be null!!");
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
if (localItem!=null) {
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("item cannot be null !!");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("item cannot be null!!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssignPrivateIpAddressesSetRequestType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssignPrivateIpAddressesSetRequestType object =
|
||||
new AssignPrivateIpAddressesSetRequestType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AssignPrivateIpAddressesSetRequestType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AssignPrivateIpAddressesSetRequestType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
java.util.ArrayList list1 = new java.util.ArrayList();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
// Process the array and step past its final element's end.
|
||||
list1.add(com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType.Factory.parse(reader));
|
||||
|
||||
//loop until we find a start element that is not part of this array
|
||||
boolean loopDone1 = false;
|
||||
while(!loopDone1){
|
||||
// We should be at the end element, but make sure
|
||||
while (!reader.isEndElement())
|
||||
reader.next();
|
||||
// Step out of this element
|
||||
reader.next();
|
||||
// Step to next element event.
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
if (reader.isEndElement()){
|
||||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
loopDone1 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// call the converter utility to convert and set the array
|
||||
|
||||
object.setItem((com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType[])
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
|
||||
com.amazon.ec2.AssignPrivateIpAddressesSetItemRequestType.class,
|
||||
list1));
|
||||
|
||||
} // 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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,755 @@
|
|||
|
||||
/**
|
||||
* AssignPrivateIpAddressesType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssignPrivateIpAddressesType bean class
|
||||
*/
|
||||
|
||||
public class AssignPrivateIpAddressesType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssignPrivateIpAddressesType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for NetworkInterfaceId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localNetworkInterfaceId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getNetworkInterfaceId(){
|
||||
return localNetworkInterfaceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param NetworkInterfaceId
|
||||
*/
|
||||
public void setNetworkInterfaceId(java.lang.String param){
|
||||
|
||||
this.localNetworkInterfaceId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for PrivateIpAddressesSet
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AssignPrivateIpAddressesSetRequestType localPrivateIpAddressesSet ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localPrivateIpAddressesSetTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AssignPrivateIpAddressesSetRequestType
|
||||
*/
|
||||
public com.amazon.ec2.AssignPrivateIpAddressesSetRequestType getPrivateIpAddressesSet(){
|
||||
return localPrivateIpAddressesSet;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param PrivateIpAddressesSet
|
||||
*/
|
||||
public void setPrivateIpAddressesSet(com.amazon.ec2.AssignPrivateIpAddressesSetRequestType param){
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localPrivateIpAddressesSetTracker = true;
|
||||
} else {
|
||||
localPrivateIpAddressesSetTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localPrivateIpAddressesSet=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for SecondaryPrivateIpAddressCount
|
||||
*/
|
||||
|
||||
|
||||
protected int localSecondaryPrivateIpAddressCount ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localSecondaryPrivateIpAddressCountTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return int
|
||||
*/
|
||||
public int getSecondaryPrivateIpAddressCount(){
|
||||
return localSecondaryPrivateIpAddressCount;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param SecondaryPrivateIpAddressCount
|
||||
*/
|
||||
public void setSecondaryPrivateIpAddressCount(int param){
|
||||
|
||||
// setting primitive attribute tracker to true
|
||||
|
||||
if (param==java.lang.Integer.MIN_VALUE) {
|
||||
localSecondaryPrivateIpAddressCountTracker = false;
|
||||
|
||||
} else {
|
||||
localSecondaryPrivateIpAddressCountTracker = true;
|
||||
}
|
||||
|
||||
this.localSecondaryPrivateIpAddressCount=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for AllowReassignment
|
||||
*/
|
||||
|
||||
|
||||
protected boolean localAllowReassignment ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localAllowReassignmentTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean getAllowReassignment(){
|
||||
return localAllowReassignment;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AllowReassignment
|
||||
*/
|
||||
public void setAllowReassignment(boolean param){
|
||||
|
||||
// setting primitive attribute tracker to true
|
||||
|
||||
if (false) {
|
||||
localAllowReassignmentTracker = false;
|
||||
|
||||
} else {
|
||||
localAllowReassignmentTracker = true;
|
||||
}
|
||||
|
||||
this.localAllowReassignment=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssignPrivateIpAddressesType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssignPrivateIpAddressesType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssignPrivateIpAddressesType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"networkInterfaceId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"networkInterfaceId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("networkInterfaceId");
|
||||
}
|
||||
|
||||
|
||||
if (localNetworkInterfaceId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("networkInterfaceId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localNetworkInterfaceId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
if (localPrivateIpAddressesSetTracker){
|
||||
if (localPrivateIpAddressesSet==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("privateIpAddressesSet cannot be null!!");
|
||||
}
|
||||
localPrivateIpAddressesSet.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","privateIpAddressesSet"),
|
||||
factory,xmlWriter);
|
||||
} if (localSecondaryPrivateIpAddressCountTracker){
|
||||
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,"secondaryPrivateIpAddressCount", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"secondaryPrivateIpAddressCount");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("secondaryPrivateIpAddressCount");
|
||||
}
|
||||
|
||||
if (localSecondaryPrivateIpAddressCount==java.lang.Integer.MIN_VALUE) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("secondaryPrivateIpAddressCount cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecondaryPrivateIpAddressCount));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
} if (localAllowReassignmentTracker){
|
||||
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,"allowReassignment", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"allowReassignment");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("allowReassignment");
|
||||
}
|
||||
|
||||
if (false) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("allowReassignment cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowReassignment));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"networkInterfaceId"));
|
||||
|
||||
if (localNetworkInterfaceId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNetworkInterfaceId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("networkInterfaceId cannot be null!!");
|
||||
}
|
||||
if (localPrivateIpAddressesSetTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"privateIpAddressesSet"));
|
||||
|
||||
|
||||
if (localPrivateIpAddressesSet==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("privateIpAddressesSet cannot be null!!");
|
||||
}
|
||||
elementList.add(localPrivateIpAddressesSet);
|
||||
} if (localSecondaryPrivateIpAddressCountTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"secondaryPrivateIpAddressCount"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecondaryPrivateIpAddressCount));
|
||||
} if (localAllowReassignmentTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"allowReassignment"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowReassignment));
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssignPrivateIpAddressesType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssignPrivateIpAddressesType object =
|
||||
new AssignPrivateIpAddressesType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AssignPrivateIpAddressesType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AssignPrivateIpAddressesType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","networkInterfaceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setNetworkInterfaceId(
|
||||
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/","privateIpAddressesSet").equals(reader.getName())){
|
||||
|
||||
object.setPrivateIpAddressesSet(com.amazon.ec2.AssignPrivateIpAddressesSetRequestType.Factory.parse(reader));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","secondaryPrivateIpAddressCount").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setSecondaryPrivateIpAddressCount(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
object.setSecondaryPrivateIpAddressCount(java.lang.Integer.MIN_VALUE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","allowReassignment").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAllowReassignment(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
if (reader.isStartElement())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateAddress.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateAddress",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AssociateAddress").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssociateAddress").equals(reader.getName())){
|
||||
|
||||
object.setAssociateAddress(com.amazon.ec2.AssociateAddressType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateAddressResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateAddressResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AssociateAddressResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssociateAddressResponse").equals(reader.getName())){
|
||||
|
||||
object.setAssociateAddressResponse(com.amazon.ec2.AssociateAddressResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateAddressResponseType.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 = AssociateAddressResponseType
|
||||
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();
|
||||
|
|
@ -107,6 +91,50 @@
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for AssociationId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localAssociationId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localAssociationIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getAssociationId(){
|
||||
return localAssociationId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AssociationId
|
||||
*/
|
||||
public void setAssociationId(java.lang.String param){
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localAssociationIdTracker = true;
|
||||
} else {
|
||||
localAssociationIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localAssociationId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
|
|
@ -190,7 +218,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+":AssociateAddressResponseType",
|
||||
|
|
@ -204,7 +232,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +266,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -266,7 +294,41 @@
|
|||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
if (localAssociationIdTracker){
|
||||
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,"associationId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"associationId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("associationId");
|
||||
}
|
||||
|
||||
|
||||
if (localAssociationId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("associationId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localAssociationId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
|
|
@ -429,7 +491,7 @@
|
|||
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){
|
||||
|
|
@ -438,12 +500,21 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
|
||||
if (localAssociationIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"associationId"));
|
||||
|
||||
if (localAssociationId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAssociationId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("associationId cannot be null!!");
|
||||
}
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
|
@ -522,7 +593,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -541,7 +612,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","return").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -556,7 +627,25 @@
|
|||
// 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/","associationId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAssociationId(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateAddressType.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 = AssociateAddressType
|
||||
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,60 +32,149 @@
|
|||
|
||||
|
||||
/**
|
||||
* field for PublicIp
|
||||
* field for AssociateAddressTypeChoice_type0
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localPublicIp ;
|
||||
protected com.amazon.ec2.AssociateAddressTypeChoice_type0 localAssociateAddressTypeChoice_type0 ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
* @return com.amazon.ec2.AssociateAddressTypeChoice_type0
|
||||
*/
|
||||
public java.lang.String getPublicIp(){
|
||||
return localPublicIp;
|
||||
public com.amazon.ec2.AssociateAddressTypeChoice_type0 getAssociateAddressTypeChoice_type0(){
|
||||
return localAssociateAddressTypeChoice_type0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param PublicIp
|
||||
* @param param AssociateAddressTypeChoice_type0
|
||||
*/
|
||||
public void setPublicIp(java.lang.String param){
|
||||
public void setAssociateAddressTypeChoice_type0(com.amazon.ec2.AssociateAddressTypeChoice_type0 param){
|
||||
|
||||
this.localPublicIp=param;
|
||||
this.localAssociateAddressTypeChoice_type0=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for InstanceId
|
||||
* field for AssociateAddressTypeChoice_type1
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localInstanceId ;
|
||||
protected com.amazon.ec2.AssociateAddressTypeChoice_type1 localAssociateAddressTypeChoice_type1 ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
* @return com.amazon.ec2.AssociateAddressTypeChoice_type1
|
||||
*/
|
||||
public java.lang.String getInstanceId(){
|
||||
return localInstanceId;
|
||||
public com.amazon.ec2.AssociateAddressTypeChoice_type1 getAssociateAddressTypeChoice_type1(){
|
||||
return localAssociateAddressTypeChoice_type1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param InstanceId
|
||||
* @param param AssociateAddressTypeChoice_type1
|
||||
*/
|
||||
public void setInstanceId(java.lang.String param){
|
||||
public void setAssociateAddressTypeChoice_type1(com.amazon.ec2.AssociateAddressTypeChoice_type1 param){
|
||||
|
||||
this.localInstanceId=param;
|
||||
this.localAssociateAddressTypeChoice_type1=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for PrivateIpAddress
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localPrivateIpAddress ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localPrivateIpAddressTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getPrivateIpAddress(){
|
||||
return localPrivateIpAddress;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param PrivateIpAddress
|
||||
*/
|
||||
public void setPrivateIpAddress(java.lang.String param){
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localPrivateIpAddressTracker = true;
|
||||
} else {
|
||||
localPrivateIpAddressTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localPrivateIpAddress=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for AllowReassociation
|
||||
*/
|
||||
|
||||
|
||||
protected boolean localAllowReassociation ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localAllowReassociationTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean getAllowReassociation(){
|
||||
return localAllowReassociation;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AllowReassociation
|
||||
*/
|
||||
public void setAllowReassociation(boolean param){
|
||||
|
||||
// setting primitive attribute tracker to true
|
||||
|
||||
if (false) {
|
||||
localAllowReassociationTracker = false;
|
||||
|
||||
} else {
|
||||
localAllowReassociationTracker = true;
|
||||
}
|
||||
|
||||
this.localAllowReassociation=param;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -190,7 +263,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+":AssociateAddressType",
|
||||
|
|
@ -204,74 +277,79 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
if (localAssociateAddressTypeChoice_type0==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("AssociateAddressTypeChoice_type0 cannot be null!!");
|
||||
}
|
||||
localAssociateAddressTypeChoice_type0.serialize(null,factory,xmlWriter);
|
||||
|
||||
if (localAssociateAddressTypeChoice_type1==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("AssociateAddressTypeChoice_type1 cannot be null!!");
|
||||
}
|
||||
localAssociateAddressTypeChoice_type1.serialize(null,factory,xmlWriter);
|
||||
if (localPrivateIpAddressTracker){
|
||||
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,"publicIp", namespace);
|
||||
xmlWriter.writeStartElement(prefix,"privateIpAddress", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"publicIp");
|
||||
xmlWriter.writeStartElement(namespace,"privateIpAddress");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("publicIp");
|
||||
xmlWriter.writeStartElement("privateIpAddress");
|
||||
}
|
||||
|
||||
|
||||
if (localPublicIp==null){
|
||||
if (localPrivateIpAddress==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("publicIp cannot be null!!");
|
||||
throw new org.apache.axis2.databinding.ADBException("privateIpAddress cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localPublicIp);
|
||||
xmlWriter.writeCharacters(localPrivateIpAddress);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
} if (localAllowReassociationTracker){
|
||||
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,"instanceId", namespace);
|
||||
xmlWriter.writeStartElement(prefix,"allowReassociation", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"instanceId");
|
||||
xmlWriter.writeStartElement(namespace,"allowReassociation");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("instanceId");
|
||||
xmlWriter.writeStartElement("allowReassociation");
|
||||
}
|
||||
|
||||
|
||||
if (localInstanceId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localInstanceId);
|
||||
|
||||
}
|
||||
if (false) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("allowReassociation cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowReassociation));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
|
|
@ -434,24 +512,39 @@
|
|||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"publicIp"));
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateAddressTypeChoice_type0"));
|
||||
|
||||
|
||||
if (localAssociateAddressTypeChoice_type0==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("AssociateAddressTypeChoice_type0 cannot be null!!");
|
||||
}
|
||||
elementList.add(localAssociateAddressTypeChoice_type0);
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateAddressTypeChoice_type1"));
|
||||
|
||||
|
||||
if (localAssociateAddressTypeChoice_type1==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("AssociateAddressTypeChoice_type1 cannot be null!!");
|
||||
}
|
||||
elementList.add(localAssociateAddressTypeChoice_type1);
|
||||
if (localPrivateIpAddressTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"privateIpAddress"));
|
||||
|
||||
if (localPublicIp != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPublicIp));
|
||||
if (localPrivateIpAddress != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrivateIpAddress));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("publicIp cannot be null!!");
|
||||
throw new org.apache.axis2.databinding.ADBException("privateIpAddress cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"instanceId"));
|
||||
} if (localAllowReassociationTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"allowReassociation"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInstanceId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowReassociation));
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
|
@ -530,41 +623,57 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","publicIp").equals(reader.getName())){
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setPublicIp(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
object.setAssociateAddressTypeChoice_type0(com.amazon.ec2.AssociateAddressTypeChoice_type0.Factory.parse(reader));
|
||||
|
||||
} // 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/2010-11-15/","instanceId").equals(reader.getName())){
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
object.setAssociateAddressTypeChoice_type1(com.amazon.ec2.AssociateAddressTypeChoice_type1.Factory.parse(reader));
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","privateIpAddress").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setInstanceId(
|
||||
object.setPrivateIpAddress(
|
||||
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());
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","allowReassociation").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAllowReassociation(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,545 @@
|
|||
|
||||
/**
|
||||
* AssociateAddressTypeChoice_type0.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssociateAddressTypeChoice_type0 bean class
|
||||
*/
|
||||
|
||||
public class AssociateAddressTypeChoice_type0
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssociateAddressTypeChoice_type0
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
/** Whenever a new property is set ensure all others are unset
|
||||
* There can be only one choice and the last one wins
|
||||
*/
|
||||
private void clearAllSettingTrackers() {
|
||||
|
||||
localPublicIpTracker = false;
|
||||
|
||||
localAllocationIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for PublicIp
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localPublicIp ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localPublicIpTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getPublicIp(){
|
||||
return localPublicIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param PublicIp
|
||||
*/
|
||||
public void setPublicIp(java.lang.String param){
|
||||
|
||||
clearAllSettingTrackers();
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localPublicIpTracker = true;
|
||||
} else {
|
||||
localPublicIpTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localPublicIp=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for AllocationId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localAllocationId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localAllocationIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getAllocationId(){
|
||||
return localAllocationId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AllocationId
|
||||
*/
|
||||
public void setAllocationId(java.lang.String param){
|
||||
|
||||
clearAllSettingTrackers();
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localAllocationIdTracker = true;
|
||||
} else {
|
||||
localAllocationIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localAllocationId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssociateAddressTypeChoice_type0.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssociateAddressTypeChoice_type0",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssociateAddressTypeChoice_type0",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (localPublicIpTracker){
|
||||
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,"publicIp", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"publicIp");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("publicIp");
|
||||
}
|
||||
|
||||
|
||||
if (localPublicIp==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("publicIp cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localPublicIp);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
} if (localAllocationIdTracker){
|
||||
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,"allocationId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"allocationId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("allocationId");
|
||||
}
|
||||
|
||||
|
||||
if (localAllocationId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localAllocationId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
if (localPublicIpTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"publicIp"));
|
||||
|
||||
if (localPublicIp != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPublicIp));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("publicIp cannot be null!!");
|
||||
}
|
||||
} if (localAllocationIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"allocationId"));
|
||||
|
||||
if (localAllocationId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllocationId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("allocationId cannot be null!!");
|
||||
}
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssociateAddressTypeChoice_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssociateAddressTypeChoice_type0 object =
|
||||
new AssociateAddressTypeChoice_type0();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","publicIp").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setPublicIp(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","allocationId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAllocationId(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,545 @@
|
|||
|
||||
/**
|
||||
* AssociateAddressTypeChoice_type1.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssociateAddressTypeChoice_type1 bean class
|
||||
*/
|
||||
|
||||
public class AssociateAddressTypeChoice_type1
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssociateAddressTypeChoice_type1
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
/** Whenever a new property is set ensure all others are unset
|
||||
* There can be only one choice and the last one wins
|
||||
*/
|
||||
private void clearAllSettingTrackers() {
|
||||
|
||||
localNetworkInterfaceIdTracker = false;
|
||||
|
||||
localInstanceIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for NetworkInterfaceId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localNetworkInterfaceId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localNetworkInterfaceIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getNetworkInterfaceId(){
|
||||
return localNetworkInterfaceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param NetworkInterfaceId
|
||||
*/
|
||||
public void setNetworkInterfaceId(java.lang.String param){
|
||||
|
||||
clearAllSettingTrackers();
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localNetworkInterfaceIdTracker = true;
|
||||
} else {
|
||||
localNetworkInterfaceIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localNetworkInterfaceId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for InstanceId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localInstanceId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localInstanceIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getInstanceId(){
|
||||
return localInstanceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param InstanceId
|
||||
*/
|
||||
public void setInstanceId(java.lang.String param){
|
||||
|
||||
clearAllSettingTrackers();
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localInstanceIdTracker = true;
|
||||
} else {
|
||||
localInstanceIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localInstanceId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssociateAddressTypeChoice_type1.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssociateAddressTypeChoice_type1",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssociateAddressTypeChoice_type1",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (localNetworkInterfaceIdTracker){
|
||||
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,"networkInterfaceId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"networkInterfaceId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("networkInterfaceId");
|
||||
}
|
||||
|
||||
|
||||
if (localNetworkInterfaceId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("networkInterfaceId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localNetworkInterfaceId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
} if (localInstanceIdTracker){
|
||||
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,"instanceId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"instanceId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("instanceId");
|
||||
}
|
||||
|
||||
|
||||
if (localInstanceId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localInstanceId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
if (localNetworkInterfaceIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"networkInterfaceId"));
|
||||
|
||||
if (localNetworkInterfaceId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNetworkInterfaceId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("networkInterfaceId cannot be null!!");
|
||||
}
|
||||
} if (localInstanceIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInstanceId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssociateAddressTypeChoice_type1 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssociateAddressTypeChoice_type1 object =
|
||||
new AssociateAddressTypeChoice_type1();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","networkInterfaceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setNetworkInterfaceId(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setInstanceId(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateDhcpOptions.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateDhcpOptions",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AssociateDhcpOptions").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssociateDhcpOptions").equals(reader.getName())){
|
||||
|
||||
object.setAssociateDhcpOptions(com.amazon.ec2.AssociateDhcpOptionsType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateDhcpOptionsResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateDhcpOptionsResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AssociateDhcpOptionsResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssociateDhcpOptionsResponse").equals(reader.getName())){
|
||||
|
||||
object.setAssociateDhcpOptionsResponse(com.amazon.ec2.AssociateDhcpOptionsResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateDhcpOptionsResponseType.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 = AssociateDhcpOptionsResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":AssociateDhcpOptionsResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -429,7 +413,7 @@
|
|||
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){
|
||||
|
|
@ -438,7 +422,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -522,7 +506,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -541,7 +525,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","return").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AssociateDhcpOptionsType.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 = AssociateDhcpOptionsType
|
||||
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();
|
||||
|
|
@ -190,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+":AssociateDhcpOptionsType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -434,7 +418,7 @@
|
|||
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/",
|
||||
"dhcpOptionsId"));
|
||||
|
||||
if (localDhcpOptionsId != null){
|
||||
|
|
@ -443,7 +427,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("dhcpOptionsId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"vpcId"));
|
||||
|
||||
if (localVpcId != null){
|
||||
|
|
@ -530,7 +514,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","dhcpOptionsId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","dhcpOptionsId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -549,7 +533,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","vpcId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","vpcId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AssociateRouteTable.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssociateRouteTable bean class
|
||||
*/
|
||||
|
||||
public class AssociateRouteTable
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateRouteTable",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AssociateRouteTable
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AssociateRouteTableType localAssociateRouteTable ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AssociateRouteTableType
|
||||
*/
|
||||
public com.amazon.ec2.AssociateRouteTableType getAssociateRouteTable(){
|
||||
return localAssociateRouteTable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AssociateRouteTable
|
||||
*/
|
||||
public void setAssociateRouteTable(com.amazon.ec2.AssociateRouteTableType param){
|
||||
|
||||
this.localAssociateRouteTable=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssociateRouteTable.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAssociateRouteTable==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAssociateRouteTable.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAssociateRouteTable.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssociateRouteTable parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssociateRouteTable object =
|
||||
new AssociateRouteTable();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssociateRouteTable").equals(reader.getName())){
|
||||
|
||||
object.setAssociateRouteTable(com.amazon.ec2.AssociateRouteTableType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AssociateRouteTableResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssociateRouteTableResponse bean class
|
||||
*/
|
||||
|
||||
public class AssociateRouteTableResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AssociateRouteTableResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AssociateRouteTableResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AssociateRouteTableResponseType localAssociateRouteTableResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AssociateRouteTableResponseType
|
||||
*/
|
||||
public com.amazon.ec2.AssociateRouteTableResponseType getAssociateRouteTableResponse(){
|
||||
return localAssociateRouteTableResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AssociateRouteTableResponse
|
||||
*/
|
||||
public void setAssociateRouteTableResponse(com.amazon.ec2.AssociateRouteTableResponseType param){
|
||||
|
||||
this.localAssociateRouteTableResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssociateRouteTableResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAssociateRouteTableResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAssociateRouteTableResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAssociateRouteTableResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssociateRouteTableResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssociateRouteTableResponse object =
|
||||
new AssociateRouteTableResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AssociateRouteTableResponse").equals(reader.getName())){
|
||||
|
||||
object.setAssociateRouteTableResponse(com.amazon.ec2.AssociateRouteTableResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,575 @@
|
|||
|
||||
/**
|
||||
* AssociateRouteTableResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssociateRouteTableResponseType bean class
|
||||
*/
|
||||
|
||||
public class AssociateRouteTableResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssociateRouteTableResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 AssociationId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localAssociationId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getAssociationId(){
|
||||
return localAssociationId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AssociationId
|
||||
*/
|
||||
public void setAssociationId(java.lang.String param){
|
||||
|
||||
this.localAssociationId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssociateRouteTableResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssociateRouteTableResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssociateRouteTableResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
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,"associationId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"associationId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("associationId");
|
||||
}
|
||||
|
||||
|
||||
if (localAssociationId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("associationId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localAssociationId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"associationId"));
|
||||
|
||||
if (localAssociationId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAssociationId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("associationId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssociateRouteTableResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssociateRouteTableResponseType object =
|
||||
new AssociateRouteTableResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AssociateRouteTableResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AssociateRouteTableResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","associationId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAssociationId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,575 @@
|
|||
|
||||
/**
|
||||
* AssociateRouteTableType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AssociateRouteTableType bean class
|
||||
*/
|
||||
|
||||
public class AssociateRouteTableType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AssociateRouteTableType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for RouteTableId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localRouteTableId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getRouteTableId(){
|
||||
return localRouteTableId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param RouteTableId
|
||||
*/
|
||||
public void setRouteTableId(java.lang.String param){
|
||||
|
||||
this.localRouteTableId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for SubnetId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localSubnetId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getSubnetId(){
|
||||
return localSubnetId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param SubnetId
|
||||
*/
|
||||
public void setSubnetId(java.lang.String param){
|
||||
|
||||
this.localSubnetId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AssociateRouteTableType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AssociateRouteTableType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AssociateRouteTableType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"routeTableId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"routeTableId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("routeTableId");
|
||||
}
|
||||
|
||||
|
||||
if (localRouteTableId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("routeTableId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localRouteTableId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
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,"subnetId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"subnetId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("subnetId");
|
||||
}
|
||||
|
||||
|
||||
if (localSubnetId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("subnetId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localSubnetId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"routeTableId"));
|
||||
|
||||
if (localRouteTableId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRouteTableId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("routeTableId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"subnetId"));
|
||||
|
||||
if (localSubnetId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubnetId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("subnetId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AssociateRouteTableType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AssociateRouteTableType object =
|
||||
new AssociateRouteTableType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AssociateRouteTableType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AssociateRouteTableType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","routeTableId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setRouteTableId(
|
||||
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/","subnetId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setSubnetId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AttachInternetGateway.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachInternetGateway bean class
|
||||
*/
|
||||
|
||||
public class AttachInternetGateway
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachInternetGateway",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AttachInternetGateway
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AttachInternetGatewayType localAttachInternetGateway ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AttachInternetGatewayType
|
||||
*/
|
||||
public com.amazon.ec2.AttachInternetGatewayType getAttachInternetGateway(){
|
||||
return localAttachInternetGateway;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AttachInternetGateway
|
||||
*/
|
||||
public void setAttachInternetGateway(com.amazon.ec2.AttachInternetGatewayType param){
|
||||
|
||||
this.localAttachInternetGateway=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachInternetGateway.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAttachInternetGateway==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAttachInternetGateway.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAttachInternetGateway.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachInternetGateway parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachInternetGateway object =
|
||||
new AttachInternetGateway();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachInternetGateway").equals(reader.getName())){
|
||||
|
||||
object.setAttachInternetGateway(com.amazon.ec2.AttachInternetGatewayType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AttachInternetGatewayResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachInternetGatewayResponse bean class
|
||||
*/
|
||||
|
||||
public class AttachInternetGatewayResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachInternetGatewayResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AttachInternetGatewayResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AttachInternetGatewayResponseType localAttachInternetGatewayResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AttachInternetGatewayResponseType
|
||||
*/
|
||||
public com.amazon.ec2.AttachInternetGatewayResponseType getAttachInternetGatewayResponse(){
|
||||
return localAttachInternetGatewayResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AttachInternetGatewayResponse
|
||||
*/
|
||||
public void setAttachInternetGatewayResponse(com.amazon.ec2.AttachInternetGatewayResponseType param){
|
||||
|
||||
this.localAttachInternetGatewayResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachInternetGatewayResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAttachInternetGatewayResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAttachInternetGatewayResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAttachInternetGatewayResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachInternetGatewayResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachInternetGatewayResponse object =
|
||||
new AttachInternetGatewayResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachInternetGatewayResponse").equals(reader.getName())){
|
||||
|
||||
object.setAttachInternetGatewayResponse(com.amazon.ec2.AttachInternetGatewayResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,567 @@
|
|||
|
||||
/**
|
||||
* AttachInternetGatewayResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachInternetGatewayResponseType bean class
|
||||
*/
|
||||
|
||||
public class AttachInternetGatewayResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AttachInternetGatewayResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 _return
|
||||
*/
|
||||
|
||||
|
||||
protected boolean local_return ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean get_return(){
|
||||
return local_return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param _return
|
||||
*/
|
||||
public void set_return(boolean param){
|
||||
|
||||
this.local_return=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachInternetGatewayResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AttachInternetGatewayResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AttachInternetGatewayResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
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,"return", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"return");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("return");
|
||||
}
|
||||
|
||||
if (false) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachInternetGatewayResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachInternetGatewayResponseType object =
|
||||
new AttachInternetGatewayResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AttachInternetGatewayResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AttachInternetGatewayResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.set_return(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,575 @@
|
|||
|
||||
/**
|
||||
* AttachInternetGatewayType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachInternetGatewayType bean class
|
||||
*/
|
||||
|
||||
public class AttachInternetGatewayType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AttachInternetGatewayType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for InternetGatewayId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localInternetGatewayId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getInternetGatewayId(){
|
||||
return localInternetGatewayId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param InternetGatewayId
|
||||
*/
|
||||
public void setInternetGatewayId(java.lang.String param){
|
||||
|
||||
this.localInternetGatewayId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for VpcId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localVpcId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getVpcId(){
|
||||
return localVpcId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param VpcId
|
||||
*/
|
||||
public void setVpcId(java.lang.String param){
|
||||
|
||||
this.localVpcId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachInternetGatewayType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AttachInternetGatewayType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AttachInternetGatewayType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"internetGatewayId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"internetGatewayId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("internetGatewayId");
|
||||
}
|
||||
|
||||
|
||||
if (localInternetGatewayId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("internetGatewayId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localInternetGatewayId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
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,"vpcId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"vpcId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("vpcId");
|
||||
}
|
||||
|
||||
|
||||
if (localVpcId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("vpcId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localVpcId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"internetGatewayId"));
|
||||
|
||||
if (localInternetGatewayId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInternetGatewayId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("internetGatewayId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"vpcId"));
|
||||
|
||||
if (localVpcId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localVpcId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("vpcId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachInternetGatewayType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachInternetGatewayType object =
|
||||
new AttachInternetGatewayType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AttachInternetGatewayType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AttachInternetGatewayType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","internetGatewayId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setInternetGatewayId(
|
||||
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/","vpcId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setVpcId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AttachNetworkInterface.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachNetworkInterface bean class
|
||||
*/
|
||||
|
||||
public class AttachNetworkInterface
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachNetworkInterface",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AttachNetworkInterface
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AttachNetworkInterfaceType localAttachNetworkInterface ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AttachNetworkInterfaceType
|
||||
*/
|
||||
public com.amazon.ec2.AttachNetworkInterfaceType getAttachNetworkInterface(){
|
||||
return localAttachNetworkInterface;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AttachNetworkInterface
|
||||
*/
|
||||
public void setAttachNetworkInterface(com.amazon.ec2.AttachNetworkInterfaceType param){
|
||||
|
||||
this.localAttachNetworkInterface=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachNetworkInterface.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAttachNetworkInterface==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAttachNetworkInterface.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAttachNetworkInterface.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachNetworkInterface parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachNetworkInterface object =
|
||||
new AttachNetworkInterface();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachNetworkInterface").equals(reader.getName())){
|
||||
|
||||
object.setAttachNetworkInterface(com.amazon.ec2.AttachNetworkInterfaceType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AttachNetworkInterfaceResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachNetworkInterfaceResponse bean class
|
||||
*/
|
||||
|
||||
public class AttachNetworkInterfaceResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachNetworkInterfaceResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AttachNetworkInterfaceResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AttachNetworkInterfaceResponseType localAttachNetworkInterfaceResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AttachNetworkInterfaceResponseType
|
||||
*/
|
||||
public com.amazon.ec2.AttachNetworkInterfaceResponseType getAttachNetworkInterfaceResponse(){
|
||||
return localAttachNetworkInterfaceResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AttachNetworkInterfaceResponse
|
||||
*/
|
||||
public void setAttachNetworkInterfaceResponse(com.amazon.ec2.AttachNetworkInterfaceResponseType param){
|
||||
|
||||
this.localAttachNetworkInterfaceResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachNetworkInterfaceResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAttachNetworkInterfaceResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAttachNetworkInterfaceResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAttachNetworkInterfaceResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachNetworkInterfaceResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachNetworkInterfaceResponse object =
|
||||
new AttachNetworkInterfaceResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachNetworkInterfaceResponse").equals(reader.getName())){
|
||||
|
||||
object.setAttachNetworkInterfaceResponse(com.amazon.ec2.AttachNetworkInterfaceResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,575 @@
|
|||
|
||||
/**
|
||||
* AttachNetworkInterfaceResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachNetworkInterfaceResponseType bean class
|
||||
*/
|
||||
|
||||
public class AttachNetworkInterfaceResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AttachNetworkInterfaceResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 AttachmentId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localAttachmentId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getAttachmentId(){
|
||||
return localAttachmentId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AttachmentId
|
||||
*/
|
||||
public void setAttachmentId(java.lang.String param){
|
||||
|
||||
this.localAttachmentId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachNetworkInterfaceResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AttachNetworkInterfaceResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AttachNetworkInterfaceResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
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,"attachmentId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"attachmentId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("attachmentId");
|
||||
}
|
||||
|
||||
|
||||
if (localAttachmentId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("attachmentId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localAttachmentId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"attachmentId"));
|
||||
|
||||
if (localAttachmentId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAttachmentId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("attachmentId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachNetworkInterfaceResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachNetworkInterfaceResponseType object =
|
||||
new AttachNetworkInterfaceResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AttachNetworkInterfaceResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AttachNetworkInterfaceResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","attachmentId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setAttachmentId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,659 @@
|
|||
|
||||
/**
|
||||
* AttachNetworkInterfaceType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AttachNetworkInterfaceType bean class
|
||||
*/
|
||||
|
||||
public class AttachNetworkInterfaceType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AttachNetworkInterfaceType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for NetworkInterfaceId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localNetworkInterfaceId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getNetworkInterfaceId(){
|
||||
return localNetworkInterfaceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param NetworkInterfaceId
|
||||
*/
|
||||
public void setNetworkInterfaceId(java.lang.String param){
|
||||
|
||||
this.localNetworkInterfaceId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for InstanceId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localInstanceId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getInstanceId(){
|
||||
return localInstanceId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param InstanceId
|
||||
*/
|
||||
public void setInstanceId(java.lang.String param){
|
||||
|
||||
this.localInstanceId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for DeviceIndex
|
||||
*/
|
||||
|
||||
|
||||
protected int localDeviceIndex ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return int
|
||||
*/
|
||||
public int getDeviceIndex(){
|
||||
return localDeviceIndex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param DeviceIndex
|
||||
*/
|
||||
public void setDeviceIndex(int param){
|
||||
|
||||
this.localDeviceIndex=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AttachNetworkInterfaceType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AttachNetworkInterfaceType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AttachNetworkInterfaceType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"networkInterfaceId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"networkInterfaceId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("networkInterfaceId");
|
||||
}
|
||||
|
||||
|
||||
if (localNetworkInterfaceId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("networkInterfaceId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localNetworkInterfaceId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
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,"instanceId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"instanceId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("instanceId");
|
||||
}
|
||||
|
||||
|
||||
if (localInstanceId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localInstanceId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
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,"deviceIndex", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"deviceIndex");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("deviceIndex");
|
||||
}
|
||||
|
||||
if (localDeviceIndex==java.lang.Integer.MIN_VALUE) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("deviceIndex cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDeviceIndex));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"networkInterfaceId"));
|
||||
|
||||
if (localNetworkInterfaceId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNetworkInterfaceId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("networkInterfaceId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInstanceId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"deviceIndex"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDeviceIndex));
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AttachNetworkInterfaceType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AttachNetworkInterfaceType object =
|
||||
new AttachNetworkInterfaceType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AttachNetworkInterfaceType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AttachNetworkInterfaceType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","networkInterfaceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setNetworkInterfaceId(
|
||||
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/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setInstanceId(
|
||||
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/","deviceIndex").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setDeviceIndex(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVolume.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachVolume",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AttachVolume").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachVolume").equals(reader.getName())){
|
||||
|
||||
object.setAttachVolume(com.amazon.ec2.AttachVolumeType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVolumeResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachVolumeResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AttachVolumeResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachVolumeResponse").equals(reader.getName())){
|
||||
|
||||
object.setAttachVolumeResponse(com.amazon.ec2.AttachVolumeResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVolumeResponseType.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 = AttachVolumeResponseType
|
||||
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();
|
||||
|
|
@ -310,7 +294,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+":AttachVolumeResponseType",
|
||||
|
|
@ -324,7 +308,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -358,7 +342,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -392,7 +376,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -426,7 +410,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -460,7 +444,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -494,7 +478,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -690,7 +674,7 @@
|
|||
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){
|
||||
|
|
@ -699,7 +683,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"volumeId"));
|
||||
|
||||
if (localVolumeId != null){
|
||||
|
|
@ -708,7 +692,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("volumeId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
|
|
@ -717,7 +701,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"device"));
|
||||
|
||||
if (localDevice != null){
|
||||
|
|
@ -726,7 +710,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("device cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"status"));
|
||||
|
||||
if (localStatus != null){
|
||||
|
|
@ -735,7 +719,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("status cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"attachTime"));
|
||||
|
||||
if (localAttachTime != null){
|
||||
|
|
@ -822,7 +806,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -841,7 +825,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","volumeId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","volumeId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -860,7 +844,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","instanceId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -879,7 +863,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","device").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","device").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -898,7 +882,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","status").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","status").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -917,7 +901,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","attachTime").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","attachTime").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVolumeType.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 = AttachVolumeType
|
||||
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();
|
||||
|
|
@ -220,7 +204,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+":AttachVolumeType",
|
||||
|
|
@ -234,7 +218,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -268,7 +252,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -302,7 +286,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -498,7 +482,7 @@
|
|||
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/",
|
||||
"volumeId"));
|
||||
|
||||
if (localVolumeId != null){
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("volumeId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
|
|
@ -516,7 +500,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"device"));
|
||||
|
||||
if (localDevice != null){
|
||||
|
|
@ -603,7 +587,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","volumeId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","volumeId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -622,7 +606,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","instanceId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -641,7 +625,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","device").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","device").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVpnGateway.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachVpnGateway",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AttachVpnGateway").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachVpnGateway").equals(reader.getName())){
|
||||
|
||||
object.setAttachVpnGateway(com.amazon.ec2.AttachVpnGatewayType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVpnGatewayResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AttachVpnGatewayResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AttachVpnGatewayResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AttachVpnGatewayResponse").equals(reader.getName())){
|
||||
|
||||
object.setAttachVpnGatewayResponse(com.amazon.ec2.AttachVpnGatewayResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVpnGatewayResponseType.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 = AttachVpnGatewayResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":AttachVpnGatewayResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -241,7 +225,7 @@
|
|||
if (localAttachment==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("attachment cannot be null!!");
|
||||
}
|
||||
localAttachment.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","attachment"),
|
||||
localAttachment.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","attachment"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -406,7 +390,7 @@
|
|||
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){
|
||||
|
|
@ -415,7 +399,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"attachment"));
|
||||
|
||||
|
||||
|
|
@ -502,7 +486,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -521,7 +505,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","attachment").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","attachment").equals(reader.getName())){
|
||||
|
||||
object.setAttachment(com.amazon.ec2.AttachmentType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachVpnGatewayType.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 = AttachVpnGatewayType
|
||||
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();
|
||||
|
|
@ -190,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+":AttachVpnGatewayType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -434,7 +418,7 @@
|
|||
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/",
|
||||
"vpnGatewayId"));
|
||||
|
||||
if (localVpnGatewayId != null){
|
||||
|
|
@ -443,7 +427,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("vpnGatewayId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"vpcId"));
|
||||
|
||||
if (localVpcId != null){
|
||||
|
|
@ -530,7 +514,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","vpnGatewayId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","vpnGatewayId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -549,7 +533,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","vpcId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","vpcId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachmentSetItemResponseType.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 = AttachmentSetItemResponseType
|
||||
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();
|
||||
|
|
@ -310,7 +294,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+":AttachmentSetItemResponseType",
|
||||
|
|
@ -324,7 +308,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -358,7 +342,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -392,7 +376,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -426,7 +410,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -460,7 +444,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -494,7 +478,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -685,7 +669,7 @@
|
|||
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/",
|
||||
"volumeId"));
|
||||
|
||||
if (localVolumeId != null){
|
||||
|
|
@ -694,7 +678,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("volumeId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
|
|
@ -703,7 +687,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"device"));
|
||||
|
||||
if (localDevice != null){
|
||||
|
|
@ -712,7 +696,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("device cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"status"));
|
||||
|
||||
if (localStatus != null){
|
||||
|
|
@ -721,7 +705,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("status cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"attachTime"));
|
||||
|
||||
if (localAttachTime != null){
|
||||
|
|
@ -730,7 +714,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("attachTime cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"deleteOnTermination"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -814,7 +798,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","volumeId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","volumeId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -833,7 +817,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","instanceId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -852,7 +836,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","device").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","device").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -871,7 +855,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","status").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","status").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -890,7 +874,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","attachTime").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","attachTime").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -909,7 +893,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","deleteOnTermination").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","deleteOnTermination").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachmentSetResponseType.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 = AttachmentSetResponseType
|
||||
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();
|
||||
|
|
@ -212,7 +196,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+":AttachmentSetResponseType",
|
||||
|
|
@ -229,7 +213,7 @@
|
|||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item"),
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
|
|
@ -410,7 +394,7 @@
|
|||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
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/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
|
|
@ -529,7 +513,7 @@
|
|||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.AttachmentSetItemResponseType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachmentSetType.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 = AttachmentSetType
|
||||
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();
|
||||
|
|
@ -212,7 +196,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+":AttachmentSetType",
|
||||
|
|
@ -229,7 +213,7 @@
|
|||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item"),
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
|
|
@ -410,7 +394,7 @@
|
|||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
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/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
|
|
@ -529,7 +513,7 @@
|
|||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.AttachmentType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttachmentType.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 = AttachmentType
|
||||
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();
|
||||
|
|
@ -190,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+":AttachmentType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -434,7 +418,7 @@
|
|||
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/",
|
||||
"vpcId"));
|
||||
|
||||
if (localVpcId != null){
|
||||
|
|
@ -443,7 +427,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("vpcId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"state"));
|
||||
|
||||
if (localState != null){
|
||||
|
|
@ -530,7 +514,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","vpcId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","vpcId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -549,7 +533,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","state").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","state").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttributeBooleanValueType.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 = AttributeBooleanValueType
|
||||
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();
|
||||
|
|
@ -160,7 +144,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+":AttributeBooleanValueType",
|
||||
|
|
@ -174,7 +158,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -365,7 +349,7 @@
|
|||
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/",
|
||||
"value"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -449,7 +433,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","value").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","value").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AttributeValueType.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 = AttributeValueType
|
||||
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();
|
||||
|
|
@ -160,7 +144,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+":AttributeValueType",
|
||||
|
|
@ -174,7 +158,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -370,7 +354,7 @@
|
|||
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/",
|
||||
"value"));
|
||||
|
||||
if (localValue != null){
|
||||
|
|
@ -457,7 +441,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","value").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","value").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgress.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgress bean class
|
||||
*/
|
||||
|
||||
public class AuthorizeSecurityGroupEgress
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AuthorizeSecurityGroupEgress",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AuthorizeSecurityGroupEgress
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AuthorizeSecurityGroupEgressType localAuthorizeSecurityGroupEgress ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AuthorizeSecurityGroupEgressType
|
||||
*/
|
||||
public com.amazon.ec2.AuthorizeSecurityGroupEgressType getAuthorizeSecurityGroupEgress(){
|
||||
return localAuthorizeSecurityGroupEgress;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AuthorizeSecurityGroupEgress
|
||||
*/
|
||||
public void setAuthorizeSecurityGroupEgress(com.amazon.ec2.AuthorizeSecurityGroupEgressType param){
|
||||
|
||||
this.localAuthorizeSecurityGroupEgress=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AuthorizeSecurityGroupEgress.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAuthorizeSecurityGroupEgress==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAuthorizeSecurityGroupEgress.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAuthorizeSecurityGroupEgress.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AuthorizeSecurityGroupEgress parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AuthorizeSecurityGroupEgress object =
|
||||
new AuthorizeSecurityGroupEgress();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AuthorizeSecurityGroupEgress").equals(reader.getName())){
|
||||
|
||||
object.setAuthorizeSecurityGroupEgress(com.amazon.ec2.AuthorizeSecurityGroupEgressType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgressResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgressResponse bean class
|
||||
*/
|
||||
|
||||
public class AuthorizeSecurityGroupEgressResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AuthorizeSecurityGroupEgressResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for AuthorizeSecurityGroupEgressResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.AuthorizeSecurityGroupEgressResponseType localAuthorizeSecurityGroupEgressResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.AuthorizeSecurityGroupEgressResponseType
|
||||
*/
|
||||
public com.amazon.ec2.AuthorizeSecurityGroupEgressResponseType getAuthorizeSecurityGroupEgressResponse(){
|
||||
return localAuthorizeSecurityGroupEgressResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param AuthorizeSecurityGroupEgressResponse
|
||||
*/
|
||||
public void setAuthorizeSecurityGroupEgressResponse(com.amazon.ec2.AuthorizeSecurityGroupEgressResponseType param){
|
||||
|
||||
this.localAuthorizeSecurityGroupEgressResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AuthorizeSecurityGroupEgressResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localAuthorizeSecurityGroupEgressResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localAuthorizeSecurityGroupEgressResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localAuthorizeSecurityGroupEgressResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AuthorizeSecurityGroupEgressResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AuthorizeSecurityGroupEgressResponse object =
|
||||
new AuthorizeSecurityGroupEgressResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AuthorizeSecurityGroupEgressResponse").equals(reader.getName())){
|
||||
|
||||
object.setAuthorizeSecurityGroupEgressResponse(com.amazon.ec2.AuthorizeSecurityGroupEgressResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,567 @@
|
|||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgressResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgressResponseType bean class
|
||||
*/
|
||||
|
||||
public class AuthorizeSecurityGroupEgressResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AuthorizeSecurityGroupEgressResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 _return
|
||||
*/
|
||||
|
||||
|
||||
protected boolean local_return ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean get_return(){
|
||||
return local_return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param _return
|
||||
*/
|
||||
public void set_return(boolean param){
|
||||
|
||||
this.local_return=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AuthorizeSecurityGroupEgressResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AuthorizeSecurityGroupEgressResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AuthorizeSecurityGroupEgressResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
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,"return", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"return");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("return");
|
||||
}
|
||||
|
||||
if (false) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AuthorizeSecurityGroupEgressResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AuthorizeSecurityGroupEgressResponseType object =
|
||||
new AuthorizeSecurityGroupEgressResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AuthorizeSecurityGroupEgressResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AuthorizeSecurityGroupEgressResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.set_return(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,544 @@
|
|||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgressType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupEgressType bean class
|
||||
*/
|
||||
|
||||
public class AuthorizeSecurityGroupEgressType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AuthorizeSecurityGroupEgressType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for GroupId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localGroupId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getGroupId(){
|
||||
return localGroupId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param GroupId
|
||||
*/
|
||||
public void setGroupId(java.lang.String param){
|
||||
|
||||
this.localGroupId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for IpPermissions
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.IpPermissionSetType localIpPermissions ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.IpPermissionSetType
|
||||
*/
|
||||
public com.amazon.ec2.IpPermissionSetType getIpPermissions(){
|
||||
return localIpPermissions;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param IpPermissions
|
||||
*/
|
||||
public void setIpPermissions(com.amazon.ec2.IpPermissionSetType param){
|
||||
|
||||
this.localIpPermissions=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AuthorizeSecurityGroupEgressType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AuthorizeSecurityGroupEgressType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AuthorizeSecurityGroupEgressType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"groupId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"groupId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("groupId");
|
||||
}
|
||||
|
||||
|
||||
if (localGroupId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("groupId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localGroupId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
if (localIpPermissions==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("ipPermissions cannot be null!!");
|
||||
}
|
||||
localIpPermissions.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ipPermissions"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"groupId"));
|
||||
|
||||
if (localGroupId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGroupId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("groupId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"ipPermissions"));
|
||||
|
||||
|
||||
if (localIpPermissions==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("ipPermissions cannot be null!!");
|
||||
}
|
||||
elementList.add(localIpPermissions);
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AuthorizeSecurityGroupEgressType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AuthorizeSecurityGroupEgressType object =
|
||||
new AuthorizeSecurityGroupEgressType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"AuthorizeSecurityGroupEgressType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (AuthorizeSecurityGroupEgressType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","groupId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setGroupId(
|
||||
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/","ipPermissions").equals(reader.getName())){
|
||||
|
||||
object.setIpPermissions(com.amazon.ec2.IpPermissionSetType.Factory.parse(reader));
|
||||
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupIngress.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AuthorizeSecurityGroupIngress",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AuthorizeSecurityGroupIngress").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AuthorizeSecurityGroupIngress").equals(reader.getName())){
|
||||
|
||||
object.setAuthorizeSecurityGroupIngress(com.amazon.ec2.AuthorizeSecurityGroupIngressType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupIngressResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"AuthorizeSecurityGroupIngressResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","AuthorizeSecurityGroupIngressResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","AuthorizeSecurityGroupIngressResponse").equals(reader.getName())){
|
||||
|
||||
object.setAuthorizeSecurityGroupIngressResponse(com.amazon.ec2.AuthorizeSecurityGroupIngressResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupIngressResponseType.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 = AuthorizeSecurityGroupIngressResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":AuthorizeSecurityGroupIngressResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -429,7 +413,7 @@
|
|||
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){
|
||||
|
|
@ -438,7 +422,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -522,7 +506,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -541,7 +525,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","return").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupIngressType.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 = AuthorizeSecurityGroupIngressType
|
||||
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();
|
||||
|
|
@ -54,6 +38,12 @@
|
|||
|
||||
protected java.lang.String localUserId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localUserIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
|
|
@ -71,6 +61,14 @@
|
|||
*/
|
||||
public void setUserId(java.lang.String param){
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localUserIdTracker = true;
|
||||
} else {
|
||||
localUserIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localUserId=param;
|
||||
|
||||
|
||||
|
|
@ -78,30 +76,30 @@
|
|||
|
||||
|
||||
/**
|
||||
* field for GroupName
|
||||
* field for AuthorizeSecurityGroupIngressTypeChoice_type0
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localGroupName ;
|
||||
protected com.amazon.ec2.AuthorizeSecurityGroupIngressTypeChoice_type0 localAuthorizeSecurityGroupIngressTypeChoice_type0 ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
* @return com.amazon.ec2.AuthorizeSecurityGroupIngressTypeChoice_type0
|
||||
*/
|
||||
public java.lang.String getGroupName(){
|
||||
return localGroupName;
|
||||
public com.amazon.ec2.AuthorizeSecurityGroupIngressTypeChoice_type0 getAuthorizeSecurityGroupIngressTypeChoice_type0(){
|
||||
return localAuthorizeSecurityGroupIngressTypeChoice_type0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param GroupName
|
||||
* @param param AuthorizeSecurityGroupIngressTypeChoice_type0
|
||||
*/
|
||||
public void setGroupName(java.lang.String param){
|
||||
public void setAuthorizeSecurityGroupIngressTypeChoice_type0(com.amazon.ec2.AuthorizeSecurityGroupIngressTypeChoice_type0 param){
|
||||
|
||||
this.localGroupName=param;
|
||||
this.localAuthorizeSecurityGroupIngressTypeChoice_type0=param;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -220,7 +218,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+":AuthorizeSecurityGroupIngressType",
|
||||
|
|
@ -233,8 +231,8 @@
|
|||
|
||||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
if (localUserIdTracker){
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -267,45 +265,16 @@
|
|||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
xmlWriter.writeStartElement(prefix,"groupName", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"groupName");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("groupName");
|
||||
}
|
||||
|
||||
|
||||
if (localGroupName==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("groupName cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
}
|
||||
if (localAuthorizeSecurityGroupIngressTypeChoice_type0==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("AuthorizeSecurityGroupIngressTypeChoice_type0 cannot be null!!");
|
||||
}
|
||||
localAuthorizeSecurityGroupIngressTypeChoice_type0.serialize(null,factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeCharacters(localGroupName);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
if (localIpPermissions==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("ipPermissions cannot be null!!");
|
||||
}
|
||||
localIpPermissions.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","ipPermissions"),
|
||||
localIpPermissions.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ipPermissions"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -469,8 +438,8 @@
|
|||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
if (localUserIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"userId"));
|
||||
|
||||
if (localUserId != null){
|
||||
|
|
@ -478,17 +447,17 @@
|
|||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("userId cannot be null!!");
|
||||
}
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"groupName"));
|
||||
|
||||
if (localGroupName != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGroupName));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("groupName cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"AuthorizeSecurityGroupIngressTypeChoice_type0"));
|
||||
|
||||
|
||||
if (localAuthorizeSecurityGroupIngressTypeChoice_type0==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("AuthorizeSecurityGroupIngressTypeChoice_type0 cannot be null!!");
|
||||
}
|
||||
elementList.add(localAuthorizeSecurityGroupIngressTypeChoice_type0);
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"ipPermissions"));
|
||||
|
||||
|
||||
|
|
@ -575,7 +544,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","userId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","userId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -586,34 +555,23 @@
|
|||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","groupName").equals(reader.getName())){
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setGroupName(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
object.setAuthorizeSecurityGroupIngressTypeChoice_type0(com.amazon.ec2.AuthorizeSecurityGroupIngressTypeChoice_type0.Factory.parse(reader));
|
||||
|
||||
} // 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/2010-11-15/","ipPermissions").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ipPermissions").equals(reader.getName())){
|
||||
|
||||
object.setIpPermissions(com.amazon.ec2.IpPermissionSetType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,545 @@
|
|||
|
||||
/**
|
||||
* AuthorizeSecurityGroupIngressTypeChoice_type0.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* AuthorizeSecurityGroupIngressTypeChoice_type0 bean class
|
||||
*/
|
||||
|
||||
public class AuthorizeSecurityGroupIngressTypeChoice_type0
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = AuthorizeSecurityGroupIngressTypeChoice_type0
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
/** Whenever a new property is set ensure all others are unset
|
||||
* There can be only one choice and the last one wins
|
||||
*/
|
||||
private void clearAllSettingTrackers() {
|
||||
|
||||
localGroupIdTracker = false;
|
||||
|
||||
localGroupNameTracker = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for GroupId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localGroupId ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localGroupIdTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getGroupId(){
|
||||
return localGroupId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param GroupId
|
||||
*/
|
||||
public void setGroupId(java.lang.String param){
|
||||
|
||||
clearAllSettingTrackers();
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localGroupIdTracker = true;
|
||||
} else {
|
||||
localGroupIdTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localGroupId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* field for GroupName
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localGroupName ;
|
||||
|
||||
/* This tracker boolean wil be used to detect whether the user called the set method
|
||||
* for this attribute. It will be used to determine whether to include this field
|
||||
* in the serialized XML
|
||||
*/
|
||||
protected boolean localGroupNameTracker = false ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getGroupName(){
|
||||
return localGroupName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param GroupName
|
||||
*/
|
||||
public void setGroupName(java.lang.String param){
|
||||
|
||||
clearAllSettingTrackers();
|
||||
|
||||
if (param != null){
|
||||
//update the setting tracker
|
||||
localGroupNameTracker = true;
|
||||
} else {
|
||||
localGroupNameTracker = false;
|
||||
|
||||
}
|
||||
|
||||
this.localGroupName=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
AuthorizeSecurityGroupIngressTypeChoice_type0.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":AuthorizeSecurityGroupIngressTypeChoice_type0",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"AuthorizeSecurityGroupIngressTypeChoice_type0",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (localGroupIdTracker){
|
||||
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,"groupId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"groupId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("groupId");
|
||||
}
|
||||
|
||||
|
||||
if (localGroupId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("groupId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localGroupId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
} if (localGroupNameTracker){
|
||||
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,"groupName", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"groupName");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("groupName");
|
||||
}
|
||||
|
||||
|
||||
if (localGroupName==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("groupName cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localGroupName);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
if (localGroupIdTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"groupId"));
|
||||
|
||||
if (localGroupId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGroupId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("groupId cannot be null!!");
|
||||
}
|
||||
} if (localGroupNameTracker){
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"groupName"));
|
||||
|
||||
if (localGroupName != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGroupName));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("groupName cannot be null!!");
|
||||
}
|
||||
}
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static AuthorizeSecurityGroupIngressTypeChoice_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
AuthorizeSecurityGroupIngressTypeChoice_type0 object =
|
||||
new AuthorizeSecurityGroupIngressTypeChoice_type0();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","groupId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setGroupId(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
else
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","groupName").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setGroupName(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
|
||||
|
||||
reader.next();
|
||||
|
||||
} // End of if for expected property start element
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AvailabilityZoneItemType.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 = AvailabilityZoneItemType
|
||||
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();
|
||||
|
|
@ -250,7 +234,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+":AvailabilityZoneItemType",
|
||||
|
|
@ -264,7 +248,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -298,7 +282,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -332,7 +316,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -369,7 +353,7 @@
|
|||
if (localMessageSet==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("messageSet cannot be null!!");
|
||||
}
|
||||
localMessageSet.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","messageSet"),
|
||||
localMessageSet.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","messageSet"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -534,7 +518,7 @@
|
|||
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/",
|
||||
"zoneName"));
|
||||
|
||||
if (localZoneName != null){
|
||||
|
|
@ -543,7 +527,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("zoneName cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"zoneState"));
|
||||
|
||||
if (localZoneState != null){
|
||||
|
|
@ -552,7 +536,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("zoneState cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"regionName"));
|
||||
|
||||
if (localRegionName != null){
|
||||
|
|
@ -561,7 +545,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("regionName cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"messageSet"));
|
||||
|
||||
|
||||
|
|
@ -648,7 +632,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","zoneName").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","zoneName").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -667,7 +651,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","zoneState").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","zoneState").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -686,7 +670,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","regionName").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","regionName").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -705,7 +689,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","messageSet").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","messageSet").equals(reader.getName())){
|
||||
|
||||
object.setMessageSet(com.amazon.ec2.AvailabilityZoneMessageSetType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AvailabilityZoneMessageSetType.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 = AvailabilityZoneMessageSetType
|
||||
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();
|
||||
|
|
@ -212,7 +196,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+":AvailabilityZoneMessageSetType",
|
||||
|
|
@ -229,7 +213,7 @@
|
|||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item"),
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
|
|
@ -410,7 +394,7 @@
|
|||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
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/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
|
|
@ -529,7 +513,7 @@
|
|||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.AvailabilityZoneMessageType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AvailabilityZoneMessageType.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 = AvailabilityZoneMessageType
|
||||
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();
|
||||
|
|
@ -160,7 +144,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+":AvailabilityZoneMessageType",
|
||||
|
|
@ -174,7 +158,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -370,7 +354,7 @@
|
|||
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/",
|
||||
"message"));
|
||||
|
||||
if (localMessage != null){
|
||||
|
|
@ -457,7 +441,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","message").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","message").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* AvailabilityZoneSetType.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 = AvailabilityZoneSetType
|
||||
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();
|
||||
|
|
@ -212,7 +196,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+":AvailabilityZoneSetType",
|
||||
|
|
@ -229,7 +213,7 @@
|
|||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item"),
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
|
|
@ -410,7 +394,7 @@
|
|||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
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/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
|
|
@ -529,7 +513,7 @@
|
|||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.AvailabilityZoneItemType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BlockDeviceMappingItemType.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 = BlockDeviceMappingItemType
|
||||
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();
|
||||
|
|
@ -190,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+":BlockDeviceMappingItemType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -405,7 +389,7 @@
|
|||
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/",
|
||||
"deviceName"));
|
||||
|
||||
if (localDeviceName != null){
|
||||
|
|
@ -414,7 +398,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("deviceName cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"BlockDeviceMappingItemTypeChoice_type0"));
|
||||
|
||||
|
||||
|
|
@ -501,7 +485,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","deviceName").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","deviceName").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BlockDeviceMappingItemTypeChoice_type0.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 = BlockDeviceMappingItemTypeChoice_type0
|
||||
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();
|
||||
|
|
@ -260,7 +244,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+":BlockDeviceMappingItemTypeChoice_type0",
|
||||
|
|
@ -274,7 +258,7 @@
|
|||
|
||||
}
|
||||
if (localVirtualNameTracker){
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -311,13 +295,13 @@
|
|||
if (localEbs==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("ebs cannot be null!!");
|
||||
}
|
||||
localEbs.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","ebs"),
|
||||
localEbs.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ebs"),
|
||||
factory,xmlWriter);
|
||||
} if (localNoDeviceTracker){
|
||||
if (localNoDevice==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("noDevice cannot be null!!");
|
||||
}
|
||||
localNoDevice.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","noDevice"),
|
||||
localNoDevice.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","noDevice"),
|
||||
factory,xmlWriter);
|
||||
}
|
||||
|
||||
|
|
@ -480,7 +464,7 @@
|
|||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
if (localVirtualNameTracker){
|
||||
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/",
|
||||
"virtualName"));
|
||||
|
||||
if (localVirtualName != null){
|
||||
|
|
@ -489,7 +473,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("virtualName cannot be null!!");
|
||||
}
|
||||
} if (localEbsTracker){
|
||||
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/",
|
||||
"ebs"));
|
||||
|
||||
|
||||
|
|
@ -498,7 +482,7 @@
|
|||
}
|
||||
elementList.add(localEbs);
|
||||
} if (localNoDeviceTracker){
|
||||
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/",
|
||||
"noDevice"));
|
||||
|
||||
|
||||
|
|
@ -553,7 +537,7 @@
|
|||
|
||||
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","virtualName").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","virtualName").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -566,7 +550,7 @@
|
|||
|
||||
else
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","ebs").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ebs").equals(reader.getName())){
|
||||
|
||||
object.setEbs(com.amazon.ec2.EbsBlockDeviceType.Factory.parse(reader));
|
||||
|
||||
|
|
@ -576,7 +560,7 @@
|
|||
|
||||
else
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","noDevice").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","noDevice").equals(reader.getName())){
|
||||
|
||||
object.setNoDevice(com.amazon.ec2.EmptyElementType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BlockDeviceMappingType.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 = BlockDeviceMappingType
|
||||
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();
|
||||
|
|
@ -212,7 +196,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+":BlockDeviceMappingType",
|
||||
|
|
@ -229,7 +213,7 @@
|
|||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item"),
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
|
|
@ -410,7 +394,7 @@
|
|||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
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/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
|
|
@ -529,7 +513,7 @@
|
|||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.BlockDeviceMappingItemType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstance.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"BundleInstance",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","BundleInstance").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","BundleInstance").equals(reader.getName())){
|
||||
|
||||
object.setBundleInstance(com.amazon.ec2.BundleInstanceType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"BundleInstanceResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","BundleInstanceResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","BundleInstanceResponse").equals(reader.getName())){
|
||||
|
||||
object.setBundleInstanceResponse(com.amazon.ec2.BundleInstanceResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceResponseType.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 = BundleInstanceResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":BundleInstanceResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -241,7 +225,7 @@
|
|||
if (localBundleInstanceTask==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("bundleInstanceTask cannot be null!!");
|
||||
}
|
||||
localBundleInstanceTask.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bundleInstanceTask"),
|
||||
localBundleInstanceTask.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bundleInstanceTask"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -406,7 +390,7 @@
|
|||
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){
|
||||
|
|
@ -415,7 +399,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"bundleInstanceTask"));
|
||||
|
||||
|
||||
|
|
@ -502,7 +486,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -521,7 +505,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bundleInstanceTask").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bundleInstanceTask").equals(reader.getName())){
|
||||
|
||||
object.setBundleInstanceTask(com.amazon.ec2.BundleInstanceTaskType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceS3StorageType.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 = BundleInstanceS3StorageType
|
||||
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();
|
||||
|
|
@ -322,7 +306,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+":BundleInstanceS3StorageType",
|
||||
|
|
@ -336,7 +320,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -370,7 +354,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -404,7 +388,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
if (localAwsAccessKeyIdTracker){
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -438,7 +422,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
} if (localUploadPolicyTracker){
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -472,7 +456,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
} if (localUploadPolicySignatureTracker){
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -668,7 +652,7 @@
|
|||
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/",
|
||||
"bucket"));
|
||||
|
||||
if (localBucket != null){
|
||||
|
|
@ -677,7 +661,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("bucket cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"prefix"));
|
||||
|
||||
if (localPrefix != null){
|
||||
|
|
@ -686,7 +670,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("prefix cannot be null!!");
|
||||
}
|
||||
if (localAwsAccessKeyIdTracker){
|
||||
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/",
|
||||
"awsAccessKeyId"));
|
||||
|
||||
if (localAwsAccessKeyId != null){
|
||||
|
|
@ -695,7 +679,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("awsAccessKeyId cannot be null!!");
|
||||
}
|
||||
} if (localUploadPolicyTracker){
|
||||
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/",
|
||||
"uploadPolicy"));
|
||||
|
||||
if (localUploadPolicy != null){
|
||||
|
|
@ -704,7 +688,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("uploadPolicy cannot be null!!");
|
||||
}
|
||||
} if (localUploadPolicySignatureTracker){
|
||||
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/",
|
||||
"uploadPolicySignature"));
|
||||
|
||||
if (localUploadPolicySignature != null){
|
||||
|
|
@ -791,7 +775,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bucket").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bucket").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -810,7 +794,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","prefix").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","prefix").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -829,7 +813,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","awsAccessKeyId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","awsAccessKeyId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -847,7 +831,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","uploadPolicy").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","uploadPolicy").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -865,7 +849,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","uploadPolicySignature").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","uploadPolicySignature").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceTaskErrorType.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 = BundleInstanceTaskErrorType
|
||||
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();
|
||||
|
|
@ -190,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+":BundleInstanceTaskErrorType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -434,7 +418,7 @@
|
|||
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/",
|
||||
"code"));
|
||||
|
||||
if (localCode != null){
|
||||
|
|
@ -443,7 +427,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("code cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"message"));
|
||||
|
||||
if (localMessage != null){
|
||||
|
|
@ -530,7 +514,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","code").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","code").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -549,7 +533,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","message").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","message").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceTaskStorageType.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 = BundleInstanceTaskStorageType
|
||||
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();
|
||||
|
|
@ -160,7 +144,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+":BundleInstanceTaskStorageType",
|
||||
|
|
@ -177,7 +161,7 @@
|
|||
if (localS3==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("S3 cannot be null!!");
|
||||
}
|
||||
localS3.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","S3"),
|
||||
localS3.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","S3"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -342,7 +326,7 @@
|
|||
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/",
|
||||
"S3"));
|
||||
|
||||
|
||||
|
|
@ -429,7 +413,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","S3").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","S3").equals(reader.getName())){
|
||||
|
||||
object.setS3(com.amazon.ec2.BundleInstanceS3StorageType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceTaskType.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 = BundleInstanceTaskType
|
||||
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();
|
||||
|
|
@ -398,7 +382,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+":BundleInstanceTaskType",
|
||||
|
|
@ -412,7 +396,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -446,7 +430,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -480,7 +464,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -514,7 +498,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -548,7 +532,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -585,10 +569,10 @@
|
|||
if (localStorage==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("storage cannot be null!!");
|
||||
}
|
||||
localStorage.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","storage"),
|
||||
localStorage.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","storage"),
|
||||
factory,xmlWriter);
|
||||
if (localProgressTracker){
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -625,7 +609,7 @@
|
|||
if (localError==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("error cannot be null!!");
|
||||
}
|
||||
localError.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","error"),
|
||||
localError.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","error"),
|
||||
factory,xmlWriter);
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -790,7 +774,7 @@
|
|||
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/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
|
|
@ -799,7 +783,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"bundleId"));
|
||||
|
||||
if (localBundleId != null){
|
||||
|
|
@ -808,7 +792,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("bundleId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"state"));
|
||||
|
||||
if (localState != null){
|
||||
|
|
@ -817,7 +801,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("state cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"startTime"));
|
||||
|
||||
if (localStartTime != null){
|
||||
|
|
@ -826,7 +810,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("startTime cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"updateTime"));
|
||||
|
||||
if (localUpdateTime != null){
|
||||
|
|
@ -835,7 +819,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("updateTime cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"storage"));
|
||||
|
||||
|
||||
|
|
@ -844,7 +828,7 @@
|
|||
}
|
||||
elementList.add(localStorage);
|
||||
if (localProgressTracker){
|
||||
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/",
|
||||
"progress"));
|
||||
|
||||
if (localProgress != null){
|
||||
|
|
@ -853,7 +837,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("progress cannot be null!!");
|
||||
}
|
||||
} if (localErrorTracker){
|
||||
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/",
|
||||
"error"));
|
||||
|
||||
|
||||
|
|
@ -940,7 +924,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","instanceId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -959,7 +943,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bundleId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bundleId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -978,7 +962,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","state").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","state").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -997,7 +981,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","startTime").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","startTime").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -1016,7 +1000,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","updateTime").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","updateTime").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -1035,7 +1019,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","storage").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","storage").equals(reader.getName())){
|
||||
|
||||
object.setStorage(com.amazon.ec2.BundleInstanceTaskStorageType.Factory.parse(reader));
|
||||
|
||||
|
|
@ -1051,7 +1035,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","progress").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","progress").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -1069,7 +1053,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","error").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","error").equals(reader.getName())){
|
||||
|
||||
object.setError(com.amazon.ec2.BundleInstanceTaskErrorType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceTasksSetType.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 = BundleInstanceTasksSetType
|
||||
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();
|
||||
|
|
@ -212,7 +196,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+":BundleInstanceTasksSetType",
|
||||
|
|
@ -229,7 +213,7 @@
|
|||
if (localItem!=null){
|
||||
for (int i = 0;i < localItem.length;i++){
|
||||
if (localItem[i] != null){
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item"),
|
||||
localItem[i].serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item"),
|
||||
factory,xmlWriter);
|
||||
} else {
|
||||
|
||||
|
|
@ -410,7 +394,7 @@
|
|||
for (int i = 0;i < localItem.length;i++){
|
||||
|
||||
if (localItem[i] != null){
|
||||
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/",
|
||||
"item"));
|
||||
elementList.add(localItem[i]);
|
||||
} else {
|
||||
|
|
@ -507,7 +491,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
|
||||
|
||||
|
||||
|
|
@ -529,7 +513,7 @@
|
|||
//two continuous end elements means we are exiting the xml structure
|
||||
loopDone1 = true;
|
||||
} else {
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","item").equals(reader.getName())){
|
||||
if (new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","item").equals(reader.getName())){
|
||||
list1.add(com.amazon.ec2.BundleInstanceTaskType.Factory.parse(reader));
|
||||
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* BundleInstanceType.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 = BundleInstanceType
|
||||
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();
|
||||
|
|
@ -190,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+":BundleInstanceType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -241,7 +225,7 @@
|
|||
if (localStorage==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("storage cannot be null!!");
|
||||
}
|
||||
localStorage.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","storage"),
|
||||
localStorage.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","storage"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -406,7 +390,7 @@
|
|||
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/",
|
||||
"instanceId"));
|
||||
|
||||
if (localInstanceId != null){
|
||||
|
|
@ -415,7 +399,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("instanceId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"storage"));
|
||||
|
||||
|
||||
|
|
@ -502,7 +486,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","instanceId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","instanceId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -521,7 +505,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","storage").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","storage").equals(reader.getName())){
|
||||
|
||||
object.setStorage(com.amazon.ec2.BundleInstanceTaskStorageType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelBundleTask.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelBundleTask",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","CancelBundleTask").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelBundleTask").equals(reader.getName())){
|
||||
|
||||
object.setCancelBundleTask(com.amazon.ec2.CancelBundleTaskType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelBundleTaskResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelBundleTaskResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","CancelBundleTaskResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelBundleTaskResponse").equals(reader.getName())){
|
||||
|
||||
object.setCancelBundleTaskResponse(com.amazon.ec2.CancelBundleTaskResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelBundleTaskResponseType.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 = CancelBundleTaskResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":CancelBundleTaskResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -241,7 +225,7 @@
|
|||
if (localBundleInstanceTask==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("bundleInstanceTask cannot be null!!");
|
||||
}
|
||||
localBundleInstanceTask.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bundleInstanceTask"),
|
||||
localBundleInstanceTask.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bundleInstanceTask"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
|
@ -406,7 +390,7 @@
|
|||
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){
|
||||
|
|
@ -415,7 +399,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"bundleInstanceTask"));
|
||||
|
||||
|
||||
|
|
@ -502,7 +486,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -521,7 +505,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bundleInstanceTask").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bundleInstanceTask").equals(reader.getName())){
|
||||
|
||||
object.setBundleInstanceTask(com.amazon.ec2.BundleInstanceTaskType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelBundleTaskType.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 = CancelBundleTaskType
|
||||
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();
|
||||
|
|
@ -160,7 +144,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+":CancelBundleTaskType",
|
||||
|
|
@ -174,7 +158,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -370,7 +354,7 @@
|
|||
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/",
|
||||
"bundleId"));
|
||||
|
||||
if (localBundleId != null){
|
||||
|
|
@ -457,7 +441,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","bundleId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","bundleId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelConversionTask.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelConversionTask",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","CancelConversionTask").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelConversionTask").equals(reader.getName())){
|
||||
|
||||
object.setCancelConversionTask(com.amazon.ec2.CancelConversionTaskType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelConversionTaskResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelConversionTaskResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","CancelConversionTaskResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelConversionTaskResponse").equals(reader.getName())){
|
||||
|
||||
object.setCancelConversionTaskResponse(com.amazon.ec2.CancelConversionTaskResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelConversionTaskResponseType.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 = CancelConversionTaskResponseType
|
||||
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();
|
||||
|
|
@ -190,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+":CancelConversionTaskResponseType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -429,7 +413,7 @@
|
|||
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){
|
||||
|
|
@ -438,7 +422,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("requestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
|
|
@ -522,7 +506,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","requestId").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();
|
||||
|
||||
|
|
@ -541,7 +525,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","return").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelConversionTaskType.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 = CancelConversionTaskType
|
||||
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();
|
||||
|
|
@ -160,7 +144,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+":CancelConversionTaskType",
|
||||
|
|
@ -174,7 +158,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -370,7 +354,7 @@
|
|||
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/",
|
||||
"conversionTaskId"));
|
||||
|
||||
if (localConversionTaskId != null){
|
||||
|
|
@ -457,7 +441,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","conversionTaskId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","conversionTaskId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* CancelExportTask.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelExportTask bean class
|
||||
*/
|
||||
|
||||
public class CancelExportTask
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelExportTask",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for CancelExportTask
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.CancelExportTaskType localCancelExportTask ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.CancelExportTaskType
|
||||
*/
|
||||
public com.amazon.ec2.CancelExportTaskType getCancelExportTask(){
|
||||
return localCancelExportTask;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param CancelExportTask
|
||||
*/
|
||||
public void setCancelExportTask(com.amazon.ec2.CancelExportTaskType param){
|
||||
|
||||
this.localCancelExportTask=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelExportTask.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localCancelExportTask==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localCancelExportTask.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localCancelExportTask.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelExportTask parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelExportTask object =
|
||||
new CancelExportTask();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelExportTask").equals(reader.getName())){
|
||||
|
||||
object.setCancelExportTask(com.amazon.ec2.CancelExportTaskType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* CancelExportTaskResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelExportTaskResponse bean class
|
||||
*/
|
||||
|
||||
public class CancelExportTaskResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelExportTaskResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for CancelExportTaskResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.CancelExportTaskResponseType localCancelExportTaskResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.CancelExportTaskResponseType
|
||||
*/
|
||||
public com.amazon.ec2.CancelExportTaskResponseType getCancelExportTaskResponse(){
|
||||
return localCancelExportTaskResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param CancelExportTaskResponse
|
||||
*/
|
||||
public void setCancelExportTaskResponse(com.amazon.ec2.CancelExportTaskResponseType param){
|
||||
|
||||
this.localCancelExportTaskResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelExportTaskResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localCancelExportTaskResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localCancelExportTaskResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localCancelExportTaskResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelExportTaskResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelExportTaskResponse object =
|
||||
new CancelExportTaskResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelExportTaskResponse").equals(reader.getName())){
|
||||
|
||||
object.setCancelExportTaskResponse(com.amazon.ec2.CancelExportTaskResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,567 @@
|
|||
|
||||
/**
|
||||
* CancelExportTaskResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelExportTaskResponseType bean class
|
||||
*/
|
||||
|
||||
public class CancelExportTaskResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = CancelExportTaskResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 _return
|
||||
*/
|
||||
|
||||
|
||||
protected boolean local_return ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean get_return(){
|
||||
return local_return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param _return
|
||||
*/
|
||||
public void set_return(boolean param){
|
||||
|
||||
this.local_return=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelExportTaskResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":CancelExportTaskResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"CancelExportTaskResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
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,"return", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"return");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("return");
|
||||
}
|
||||
|
||||
if (false) {
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("return cannot be null!!");
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"return"));
|
||||
|
||||
elementList.add(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelExportTaskResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelExportTaskResponseType object =
|
||||
new CancelExportTaskResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"CancelExportTaskResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (CancelExportTaskResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","return").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.set_return(
|
||||
org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,483 @@
|
|||
|
||||
/**
|
||||
* CancelExportTaskType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelExportTaskType bean class
|
||||
*/
|
||||
|
||||
public class CancelExportTaskType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = CancelExportTaskType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for ExportTaskId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localExportTaskId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getExportTaskId(){
|
||||
return localExportTaskId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param ExportTaskId
|
||||
*/
|
||||
public void setExportTaskId(java.lang.String param){
|
||||
|
||||
this.localExportTaskId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelExportTaskType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":CancelExportTaskType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"CancelExportTaskType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"exportTaskId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"exportTaskId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("exportTaskId");
|
||||
}
|
||||
|
||||
|
||||
if (localExportTaskId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("exportTaskId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localExportTaskId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"exportTaskId"));
|
||||
|
||||
if (localExportTaskId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExportTaskId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("exportTaskId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelExportTaskType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelExportTaskType object =
|
||||
new CancelExportTaskType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"CancelExportTaskType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (CancelExportTaskType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","exportTaskId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setExportTaskId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* CancelReservedInstancesListing.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelReservedInstancesListing bean class
|
||||
*/
|
||||
|
||||
public class CancelReservedInstancesListing
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelReservedInstancesListing",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for CancelReservedInstancesListing
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.CancelReservedInstancesListingType localCancelReservedInstancesListing ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.CancelReservedInstancesListingType
|
||||
*/
|
||||
public com.amazon.ec2.CancelReservedInstancesListingType getCancelReservedInstancesListing(){
|
||||
return localCancelReservedInstancesListing;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param CancelReservedInstancesListing
|
||||
*/
|
||||
public void setCancelReservedInstancesListing(com.amazon.ec2.CancelReservedInstancesListingType param){
|
||||
|
||||
this.localCancelReservedInstancesListing=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelReservedInstancesListing.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localCancelReservedInstancesListing==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localCancelReservedInstancesListing.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localCancelReservedInstancesListing.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelReservedInstancesListing parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelReservedInstancesListing object =
|
||||
new CancelReservedInstancesListing();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelReservedInstancesListing").equals(reader.getName())){
|
||||
|
||||
object.setCancelReservedInstancesListing(com.amazon.ec2.CancelReservedInstancesListingType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
|
||||
/**
|
||||
* CancelReservedInstancesListingResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelReservedInstancesListingResponse bean class
|
||||
*/
|
||||
|
||||
public class CancelReservedInstancesListingResponse
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelReservedInstancesListingResponse",
|
||||
"ns1");
|
||||
|
||||
|
||||
|
||||
private static java.lang.String generatePrefix(java.lang.String namespace) {
|
||||
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for CancelReservedInstancesListingResponse
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.CancelReservedInstancesListingResponseType localCancelReservedInstancesListingResponse ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.CancelReservedInstancesListingResponseType
|
||||
*/
|
||||
public com.amazon.ec2.CancelReservedInstancesListingResponseType getCancelReservedInstancesListingResponse(){
|
||||
return localCancelReservedInstancesListingResponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param CancelReservedInstancesListingResponse
|
||||
*/
|
||||
public void setCancelReservedInstancesListingResponse(com.amazon.ec2.CancelReservedInstancesListingResponseType param){
|
||||
|
||||
this.localCancelReservedInstancesListingResponse=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelReservedInstancesListingResponse.this.serialize(MY_QNAME,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
MY_QNAME,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
|
||||
if (localCancelReservedInstancesListingResponse==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("Property cannot be null!");
|
||||
}
|
||||
localCancelReservedInstancesListingResponse.serialize(MY_QNAME,factory,xmlWriter);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
//We can safely assume an element has only one type associated with it
|
||||
return localCancelReservedInstancesListingResponse.getPullParser(MY_QNAME);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelReservedInstancesListingResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelReservedInstancesListingResponse object =
|
||||
new CancelReservedInstancesListingResponse();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelReservedInstancesListingResponse").equals(reader.getName())){
|
||||
|
||||
object.setCancelReservedInstancesListingResponse(com.amazon.ec2.CancelReservedInstancesListingResponseType.Factory.parse(reader));
|
||||
|
||||
} // 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());
|
||||
}
|
||||
|
||||
} else {
|
||||
reader.next();
|
||||
}
|
||||
} // end of while loop
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,544 @@
|
|||
|
||||
/**
|
||||
* CancelReservedInstancesListingResponseType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelReservedInstancesListingResponseType bean class
|
||||
*/
|
||||
|
||||
public class CancelReservedInstancesListingResponseType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = CancelReservedInstancesListingResponseType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 ReservedInstancesListingsSet
|
||||
*/
|
||||
|
||||
|
||||
protected com.amazon.ec2.DescribeReservedInstancesListingsResponseSetType localReservedInstancesListingsSet ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return com.amazon.ec2.DescribeReservedInstancesListingsResponseSetType
|
||||
*/
|
||||
public com.amazon.ec2.DescribeReservedInstancesListingsResponseSetType getReservedInstancesListingsSet(){
|
||||
return localReservedInstancesListingsSet;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param ReservedInstancesListingsSet
|
||||
*/
|
||||
public void setReservedInstancesListingsSet(com.amazon.ec2.DescribeReservedInstancesListingsResponseSetType param){
|
||||
|
||||
this.localReservedInstancesListingsSet=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelReservedInstancesListingResponseType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":CancelReservedInstancesListingResponseType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"CancelReservedInstancesListingResponseType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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 (localReservedInstancesListingsSet==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("reservedInstancesListingsSet cannot be null!!");
|
||||
}
|
||||
localReservedInstancesListingsSet.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","reservedInstancesListingsSet"),
|
||||
factory,xmlWriter);
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
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/",
|
||||
"reservedInstancesListingsSet"));
|
||||
|
||||
|
||||
if (localReservedInstancesListingsSet==null){
|
||||
throw new org.apache.axis2.databinding.ADBException("reservedInstancesListingsSet cannot be null!!");
|
||||
}
|
||||
elementList.add(localReservedInstancesListingsSet);
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelReservedInstancesListingResponseType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelReservedInstancesListingResponseType object =
|
||||
new CancelReservedInstancesListingResponseType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"CancelReservedInstancesListingResponseType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (CancelReservedInstancesListingResponseType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
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/","reservedInstancesListingsSet").equals(reader.getName())){
|
||||
|
||||
object.setReservedInstancesListingsSet(com.amazon.ec2.DescribeReservedInstancesListingsResponseSetType.Factory.parse(reader));
|
||||
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,483 @@
|
|||
|
||||
/**
|
||||
* CancelReservedInstancesListingType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
|
||||
*/
|
||||
|
||||
package com.amazon.ec2;
|
||||
|
||||
|
||||
/**
|
||||
* CancelReservedInstancesListingType bean class
|
||||
*/
|
||||
|
||||
public class CancelReservedInstancesListingType
|
||||
implements org.apache.axis2.databinding.ADBBean{
|
||||
/* This type was generated from the piece of schema that had
|
||||
name = CancelReservedInstancesListingType
|
||||
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/2012-08-15/")){
|
||||
return "ns1";
|
||||
}
|
||||
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* field for ReservedInstancesListingId
|
||||
*/
|
||||
|
||||
|
||||
protected java.lang.String localReservedInstancesListingId ;
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated getter method
|
||||
* @return java.lang.String
|
||||
*/
|
||||
public java.lang.String getReservedInstancesListingId(){
|
||||
return localReservedInstancesListingId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Auto generated setter method
|
||||
* @param param ReservedInstancesListingId
|
||||
*/
|
||||
public void setReservedInstancesListingId(java.lang.String param){
|
||||
|
||||
this.localReservedInstancesListingId=param;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isReaderMTOMAware
|
||||
* @return true if the reader supports MTOM
|
||||
*/
|
||||
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
|
||||
boolean isReaderMTOMAware = false;
|
||||
|
||||
try{
|
||||
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
|
||||
}catch(java.lang.IllegalArgumentException e){
|
||||
isReaderMTOMAware = false;
|
||||
}
|
||||
return isReaderMTOMAware;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parentQName
|
||||
* @param factory
|
||||
* @return org.apache.axiom.om.OMElement
|
||||
*/
|
||||
public org.apache.axiom.om.OMElement getOMElement (
|
||||
final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
org.apache.axiom.om.OMDataSource dataSource =
|
||||
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
|
||||
|
||||
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
CancelReservedInstancesListingType.this.serialize(parentQName,factory,xmlWriter);
|
||||
}
|
||||
};
|
||||
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
|
||||
parentQName,factory,dataSource);
|
||||
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
serialize(parentQName,factory,xmlWriter,false);
|
||||
}
|
||||
|
||||
public void serialize(final javax.xml.namespace.QName parentQName,
|
||||
final org.apache.axiom.om.OMFactory factory,
|
||||
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
|
||||
boolean serializeType)
|
||||
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
|
||||
java.lang.String prefix = null;
|
||||
java.lang.String namespace = null;
|
||||
|
||||
|
||||
prefix = parentQName.getPrefix();
|
||||
namespace = parentQName.getNamespaceURI();
|
||||
|
||||
if ((namespace != null) && (namespace.trim().length() > 0)) {
|
||||
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
|
||||
if (writerPrefix != null) {
|
||||
xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
|
||||
} else {
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
}
|
||||
|
||||
xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
} else {
|
||||
xmlWriter.writeStartElement(parentQName.getLocalPart());
|
||||
}
|
||||
|
||||
if (serializeType){
|
||||
|
||||
|
||||
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+":CancelReservedInstancesListingType",
|
||||
xmlWriter);
|
||||
} else {
|
||||
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
|
||||
"CancelReservedInstancesListingType",
|
||||
xmlWriter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
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,"reservedInstancesListingId", namespace);
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement(namespace,"reservedInstancesListingId");
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeStartElement("reservedInstancesListingId");
|
||||
}
|
||||
|
||||
|
||||
if (localReservedInstancesListingId==null){
|
||||
// write the nil attribute
|
||||
|
||||
throw new org.apache.axis2.databinding.ADBException("reservedInstancesListingId cannot be null!!");
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
xmlWriter.writeCharacters(localReservedInstancesListingId);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute with the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (xmlWriter.getPrefix(namespace) == null) {
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
|
||||
}
|
||||
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
|
||||
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
|
||||
if (namespace.equals(""))
|
||||
{
|
||||
xmlWriter.writeAttribute(attName,attValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace,attName,attValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Util method to write an attribute without the ns prefix
|
||||
*/
|
||||
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
|
||||
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
java.lang.String attributeNamespace = qname.getNamespaceURI();
|
||||
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
|
||||
if (attributePrefix == null) {
|
||||
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
|
||||
}
|
||||
java.lang.String attributeValue;
|
||||
if (attributePrefix.trim().length() > 0) {
|
||||
attributeValue = attributePrefix + ":" + qname.getLocalPart();
|
||||
} else {
|
||||
attributeValue = qname.getLocalPart();
|
||||
}
|
||||
|
||||
if (namespace.equals("")) {
|
||||
xmlWriter.writeAttribute(attName, attributeValue);
|
||||
} else {
|
||||
registerPrefix(xmlWriter, namespace);
|
||||
xmlWriter.writeAttribute(namespace, attName, attributeValue);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* method to handle Qnames
|
||||
*/
|
||||
|
||||
private void writeQName(javax.xml.namespace.QName qname,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String namespaceURI = qname.getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
} else {
|
||||
// i.e this is the default namespace
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
|
||||
} else {
|
||||
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
|
||||
}
|
||||
}
|
||||
|
||||
private void writeQNames(javax.xml.namespace.QName[] qnames,
|
||||
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
|
||||
|
||||
if (qnames != null) {
|
||||
// we have to store this data until last moment since it is not possible to write any
|
||||
// namespace data after writing the charactor data
|
||||
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
|
||||
java.lang.String namespaceURI = null;
|
||||
java.lang.String prefix = null;
|
||||
|
||||
for (int i = 0; i < qnames.length; i++) {
|
||||
if (i > 0) {
|
||||
stringToWrite.append(" ");
|
||||
}
|
||||
namespaceURI = qnames[i].getNamespaceURI();
|
||||
if (namespaceURI != null) {
|
||||
prefix = xmlWriter.getPrefix(namespaceURI);
|
||||
if ((prefix == null) || (prefix.length() == 0)) {
|
||||
prefix = generatePrefix(namespaceURI);
|
||||
xmlWriter.writeNamespace(prefix, namespaceURI);
|
||||
xmlWriter.setPrefix(prefix,namespaceURI);
|
||||
}
|
||||
|
||||
if (prefix.trim().length() > 0){
|
||||
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
} else {
|
||||
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
|
||||
}
|
||||
}
|
||||
xmlWriter.writeCharacters(stringToWrite.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register a namespace prefix
|
||||
*/
|
||||
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
|
||||
java.lang.String prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
if (prefix == null) {
|
||||
prefix = generatePrefix(namespace);
|
||||
|
||||
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
|
||||
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
|
||||
}
|
||||
|
||||
xmlWriter.writeNamespace(prefix, namespace);
|
||||
xmlWriter.setPrefix(prefix, namespace);
|
||||
}
|
||||
|
||||
return prefix;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* databinding method to get an XML representation of this object
|
||||
*
|
||||
*/
|
||||
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
|
||||
throws org.apache.axis2.databinding.ADBException{
|
||||
|
||||
|
||||
|
||||
java.util.ArrayList elementList = new java.util.ArrayList();
|
||||
java.util.ArrayList attribList = new java.util.ArrayList();
|
||||
|
||||
|
||||
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"reservedInstancesListingId"));
|
||||
|
||||
if (localReservedInstancesListingId != null){
|
||||
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReservedInstancesListingId));
|
||||
} else {
|
||||
throw new org.apache.axis2.databinding.ADBException("reservedInstancesListingId cannot be null!!");
|
||||
}
|
||||
|
||||
|
||||
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Factory class that keeps the parse method
|
||||
*/
|
||||
public static class Factory{
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* static method to create the object
|
||||
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
|
||||
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
|
||||
* Postcondition: If this object is an element, the reader is positioned at its end element
|
||||
* If this object is a complex type, the reader is positioned at the end element of its outer element
|
||||
*/
|
||||
public static CancelReservedInstancesListingType parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
|
||||
CancelReservedInstancesListingType object =
|
||||
new CancelReservedInstancesListingType();
|
||||
|
||||
int event;
|
||||
java.lang.String nillableValue = null;
|
||||
java.lang.String prefix ="";
|
||||
java.lang.String namespaceuri ="";
|
||||
try {
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement())
|
||||
reader.next();
|
||||
|
||||
|
||||
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
|
||||
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
|
||||
"type");
|
||||
if (fullTypeName!=null){
|
||||
java.lang.String nsPrefix = null;
|
||||
if (fullTypeName.indexOf(":") > -1){
|
||||
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
|
||||
}
|
||||
nsPrefix = nsPrefix==null?"":nsPrefix;
|
||||
|
||||
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
|
||||
|
||||
if (!"CancelReservedInstancesListingType".equals(type)){
|
||||
//find namespace for the prefix
|
||||
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
|
||||
return (CancelReservedInstancesListingType)com.amazon.ec2.ExtensionMapper.getTypeObject(
|
||||
nsUri,type,reader);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Note all attributes that were handled. Used to differ normal attributes
|
||||
// from anyAttributes.
|
||||
java.util.Vector handledAttributes = new java.util.Vector();
|
||||
|
||||
|
||||
|
||||
|
||||
reader.next();
|
||||
|
||||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","reservedInstancesListingId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
object.setReservedInstancesListingId(
|
||||
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())
|
||||
// A start element we are not expecting indicates a trailing invalid property
|
||||
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
|
||||
|
||||
|
||||
|
||||
|
||||
} catch (javax.xml.stream.XMLStreamException e) {
|
||||
throw new java.lang.Exception(e);
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
}//end of factory class
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelSpotInstanceRequests.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelSpotInstanceRequests",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","CancelSpotInstanceRequests").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelSpotInstanceRequests").equals(reader.getName())){
|
||||
|
||||
object.setCancelSpotInstanceRequests(com.amazon.ec2.CancelSpotInstanceRequestsType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelSpotInstanceRequestsResponse.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,14 +17,14 @@
|
|||
implements org.apache.axis2.databinding.ADBBean{
|
||||
|
||||
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
|
||||
"http://ec2.amazonaws.com/doc/2010-11-15/",
|
||||
"http://ec2.amazonaws.com/doc/2012-08-15/",
|
||||
"CancelSpotInstanceRequestsResponse",
|
||||
"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();
|
||||
|
|
@ -343,7 +327,7 @@
|
|||
while(!reader.isEndElement()) {
|
||||
if (reader.isStartElement() ){
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","CancelSpotInstanceRequestsResponse").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","CancelSpotInstanceRequestsResponse").equals(reader.getName())){
|
||||
|
||||
object.setCancelSpotInstanceRequestsResponse(com.amazon.ec2.CancelSpotInstanceRequestsResponseType.Factory.parse(reader));
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
/**
|
||||
* CancelSpotInstanceRequestsResponseSetItemType.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 = CancelSpotInstanceRequestsResponseSetItemType
|
||||
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();
|
||||
|
|
@ -190,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+":CancelSpotInstanceRequestsResponseSetItemType",
|
||||
|
|
@ -204,7 +188,7 @@
|
|||
|
||||
}
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -238,7 +222,7 @@
|
|||
|
||||
xmlWriter.writeEndElement();
|
||||
|
||||
namespace = "http://ec2.amazonaws.com/doc/2010-11-15/";
|
||||
namespace = "http://ec2.amazonaws.com/doc/2012-08-15/";
|
||||
if (! namespace.equals("")) {
|
||||
prefix = xmlWriter.getPrefix(namespace);
|
||||
|
||||
|
|
@ -434,7 +418,7 @@
|
|||
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/",
|
||||
"spotInstanceRequestId"));
|
||||
|
||||
if (localSpotInstanceRequestId != null){
|
||||
|
|
@ -443,7 +427,7 @@
|
|||
throw new org.apache.axis2.databinding.ADBException("spotInstanceRequestId cannot be null!!");
|
||||
}
|
||||
|
||||
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/",
|
||||
"state"));
|
||||
|
||||
if (localState != null){
|
||||
|
|
@ -530,7 +514,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","spotInstanceRequestId").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","spotInstanceRequestId").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
@ -549,7 +533,7 @@
|
|||
|
||||
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
|
||||
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2010-11-15/","state").equals(reader.getName())){
|
||||
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","state").equals(reader.getName())){
|
||||
|
||||
java.lang.String content = reader.getElementText();
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue