diff --git a/.idea/misc.xml b/.idea/misc.xml
index 271d8279..b000b0f5 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -13,5 +13,5 @@
-
+
\ No newline at end of file
diff --git a/phoenix-data.iml b/phoenix-data.iml
index 95f02f74..c9b3ee35 100644
--- a/phoenix-data.iml
+++ b/phoenix-data.iml
@@ -214,5 +214,188 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/git.properties b/src/main/resources/git.properties
index 1fc0072d..4952c797 100644
--- a/src/main/resources/git.properties
+++ b/src/main/resources/git.properties
@@ -1,25 +1,25 @@
#Generated by Git-Commit-Id-Plugin
-#Mon Mar 16 17:21:00 CST 2020
+#Tue Mar 24 09:32:25 CST 2020
git.branch=master
-git.build.host=DESKTOP-GJUT8MA
-git.build.time=2020-03-16T17\:21\:00+0800
-git.build.user.email=huangxin@\u0096cmhi.chinamobile.com
-git.build.user.name=HuangXin
+git.build.host=DESKTOP-8IG72HQ
+git.build.time=2020-03-24T09\:32\:25+0800
+git.build.user.email=chenlinghy@cmhi.chinamobile.com
+git.build.user.name=chenlinghy
git.build.version=1.0.0
git.closest.tag.commit.count=
git.closest.tag.name=
-git.commit.id=42f5f76b5e1a99a327d1979368a2db3f1a0fc315
-git.commit.id.abbrev=42f5f76
-git.commit.id.describe=42f5f76-dirty
-git.commit.id.describe-short=42f5f76-dirty
-git.commit.message.full=OCT update\n\nOCT update
-git.commit.message.short=OCT update
-git.commit.time=2020-03-11T23\:38\:05+0800
-git.commit.user.email=chiwei@cmhi.chinamobile.com
-git.commit.user.name=chiwei
+git.commit.id=96d686d975035f8b9628ff0b9a8fb09eb34632e1
+git.commit.id.abbrev=96d686d
+git.commit.id.describe=96d686d-dirty
+git.commit.id.describe-short=96d686d-dirty
+git.commit.message.full=OCT\nREM\:\n1. \u6DFB\u52A0.gitignore\u914D\u7F6E\u6587\u4EF6\n2. \u589E\u52A0\u751F\u6210git version\u7248\u672C\u6587\u4EF6\u811A\u672C\n3. \u534F\u8BAE\u7C7B\u589E\u52A0\u65E0\u53C2\u6570\u9ED8\u8BA4\u6784\u9020\u51FD\u6570\n4. \u6DFB\u52A0\u534F\u8BAE\u8FD4\u56DEid\u57FA\u6570\u503C10000\n5. \u589E\u52A0IDEA\u5DE5\u7A0B\u914D\u7F6E\u6587\u4EF6
+git.commit.message.short=OCT REM\: 1. \u6DFB\u52A0.gitignore\u914D\u7F6E\u6587\u4EF6 2. \u589E\u52A0\u751F\u6210git version\u7248\u672C\u6587\u4EF6\u811A\u672C 3. \u534F\u8BAE\u7C7B\u589E\u52A0\u65E0\u53C2\u6570\u9ED8\u8BA4\u6784\u9020\u51FD\u6570 4. \u6DFB\u52A0\u534F\u8BAE\u8FD4\u56DEid\u57FA\u6570\u503C10000 5. \u589E\u52A0IDEA\u5DE5\u7A0B\u914D\u7F6E\u6587\u4EF6
+git.commit.time=2020-03-19T17\:40\:42+0800
+git.commit.user.email=huangxin@cmhi.chinamobile.com
+git.commit.user.name=huangxin
git.dirty=true
git.local.branch.ahead=0
git.local.branch.behind=0
-git.remote.origin.url=git@git.komect.net\:WLFHCZ/phoenix_share_framework.git
+git.remote.origin.url=git@git.komect.net\:DDOSAQ/phoenix_ddos_handle.git
git.tags=
-git.total.commit.count=30
+git.total.commit.count=5
diff --git a/src/test/java/com/cmcc/hy/phoenix/dptech/AbnormalFlowCleaningServiceCallbackHandler.java b/src/test/java/com/cmcc/hy/phoenix/dptech/AbnormalFlowCleaningServiceCallbackHandler.java
new file mode 100644
index 00000000..f926c852
--- /dev/null
+++ b/src/test/java/com/cmcc/hy/phoenix/dptech/AbnormalFlowCleaningServiceCallbackHandler.java
@@ -0,0 +1,2224 @@
+/**
+ * AbnormalFlowCleaningServiceCallbackHandler.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.7.9 Built on : Nov 16, 2018 (12:05:37 GMT)
+ */
+package com.cmcc.hy.phoenix.dptech;
+
+
+/**
+ * AbnormalFlowCleaningServiceCallbackHandler Callback class, Users can extend this class and implement
+ * their own receiveResult and receiveError methods.
+ */
+public abstract class AbnormalFlowCleaningServiceCallbackHandler {
+ protected Object clientData;
+
+ /**
+ * User can pass in any object that needs to be accessed once the NonBlocking
+ * Web service call is finished and appropriate method of this CallBack is called.
+ * @param clientData Object mechanism by which the user can pass in user data
+ * that will be avilable at the time this callback is called.
+ */
+ public AbnormalFlowCleaningServiceCallbackHandler(Object clientData) {
+ this.clientData = clientData;
+ }
+
+ /**
+ * Please use this constructor if you don't want to set any clientData
+ */
+ public AbnormalFlowCleaningServiceCallbackHandler() {
+ this.clientData = null;
+ }
+
+ /**
+ * Get the client data
+ */
+ public Object getClientData() {
+ return clientData;
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDnsSipCustomV4ForUMC method
+ * override this method for handling normal response from addDnsSipCustomV4ForUMC operation
+ */
+ public void receiveResultaddDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDnsSipCustomV4ForUMC operation
+ */
+ public void receiveErroraddDnsSipCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDnsSipCustomV4FromUMC method
+ * override this method for handling normal response from getDnsSipCustomV4FromUMC operation
+ */
+ public void receiveResultgetDnsSipCustomV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDnsSipCustomV4FromUMC operation
+ */
+ public void receiveErrorgetDnsSipCustomV4FromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalIcmpPayloadFromUMC method
+ * override this method for handling normal response from getDdosGlobalIcmpPayloadFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalIcmpPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalIcmpPayloadFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalIcmpPayloadFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for stopAbnormalTaskWithSpecificDeviceForUMC method
+ * override this method for handling normal response from stopAbnormalTaskWithSpecificDeviceForUMC operation
+ */
+ public void receiveResultstopAbnormalTaskWithSpecificDeviceForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from stopAbnormalTaskWithSpecificDeviceForUMC operation
+ */
+ public void receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDnsSecDomainCustomV4ForUMC method
+ * override this method for handling normal response from addDnsSecDomainCustomV4ForUMC operation
+ */
+ public void receiveResultaddDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDnsSecDomainCustomV4ForUMC operation
+ */
+ public void receiveErroraddDnsSecDomainCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDnsSipCustomV4ForUMC method
+ * override this method for handling normal response from modDnsSipCustomV4ForUMC operation
+ */
+ public void receiveResultmodDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDnsSipCustomV4ForUMC operation
+ */
+ public void receiveErrormodDnsSipCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDnsSecDomainGlobalV4ForUMC method
+ * override this method for handling normal response from addDnsSecDomainGlobalV4ForUMC operation
+ */
+ public void receiveResultaddDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDnsSecDomainGlobalV4ForUMC operation
+ */
+ public void receiveErroraddDnsSecDomainGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllCompleteAnomalyDetectionStrategyFromUMC method
+ * override this method for handling normal response from getAllCompleteAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveResultgetAllCompleteAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllCompleteAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllDetectDevices method
+ * override this method for handling normal response from getAllDetectDevices operation
+ */
+ public void receiveResultgetAllDetectDevices(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllDetectDevices operation
+ */
+ public void receiveErrorgetAllDetectDevices(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for startBlackHoleStrategyForUMC method
+ * override this method for handling normal response from startBlackHoleStrategyForUMC operation
+ */
+ public void receiveResultstartBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from startBlackHoleStrategyForUMC operation
+ */
+ public void receiveErrorstartBlackHoleStrategyForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosHttpGetSipCusProV4FromUMC method
+ * override this method for handling normal response from getDdosHttpGetSipCusProV4FromUMC operation
+ */
+ public void receiveResultgetDdosHttpGetSipCusProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosHttpGetSipCusProV4FromUMC operation
+ */
+ public void receiveErrorgetDdosHttpGetSipCusProV4FromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosDnsRetryProtectFromUMC method
+ * override this method for handling normal response from getDdosDnsRetryProtectFromUMC operation
+ */
+ public void receiveResultgetDdosDnsRetryProtectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosDnsRetryProtectFromUMC operation
+ */
+ public void receiveErrorgetDdosDnsRetryProtectFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalTcpLengthFromUMC method
+ * override this method for handling normal response from getDdosGlobalTcpLengthFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalTcpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalTcpLengthFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalTcpLengthFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosHttpGetSipGloProV4FromUMC method
+ * override this method for handling normal response from getDdosHttpGetSipGloProV4FromUMC operation
+ */
+ public void receiveResultgetDdosHttpGetSipGloProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosHttpGetSipGloProV4FromUMC operation
+ */
+ public void receiveErrorgetDdosHttpGetSipGloProV4FromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllBlackAndWhiteListFromUMC method
+ * override this method for handling normal response from getAllBlackAndWhiteListFromUMC operation
+ */
+ public void receiveResultgetAllBlackAndWhiteListFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllBlackAndWhiteListFromUMC operation
+ */
+ public void receiveErrorgetAllBlackAndWhiteListFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalUdpPayloadFromUMC method
+ * override this method for handling normal response from getDdosGlobalUdpPayloadFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalUdpPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalUdpPayloadFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalUdpPayloadFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosDnsRetryProtectForUMC method
+ * override this method for handling normal response from delDdosDnsRetryProtectForUMC operation
+ */
+ public void receiveResultdelDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosDnsRetryProtectForUMC operation
+ */
+ public void receiveErrordelDdosDnsRetryProtectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllBypassManualTractionStrategyFromUMC method
+ * override this method for handling normal response from getAllBypassManualTractionStrategyFromUMC operation
+ */
+ public void receiveResultgetAllBypassManualTractionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllBypassManualTractionStrategyFromUMC operation
+ */
+ public void receiveErrorgetAllBypassManualTractionStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for disableProtectionStrategyTemplateForUMC method
+ * override this method for handling normal response from disableProtectionStrategyTemplateForUMC operation
+ */
+ public void receiveResultdisableProtectionStrategyTemplateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from disableProtectionStrategyTemplateForUMC operation
+ */
+ public void receiveErrordisableProtectionStrategyTemplateForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delFingerprintIcmpForUMC method
+ * override this method for handling normal response from delFingerprintIcmpForUMC operation
+ */
+ public void receiveResultdelFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delFingerprintIcmpForUMC operation
+ */
+ public void receiveErrordelFingerprintIcmpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDnsDomainGlobalV4ForUMC method
+ * override this method for handling normal response from modDnsDomainGlobalV4ForUMC operation
+ */
+ public void receiveResultmodDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDnsDomainGlobalV4ForUMC operation
+ */
+ public void receiveErrormodDnsDomainGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for startAbnormalTaskWithSpecificDeviceForUMC method
+ * override this method for handling normal response from startAbnormalTaskWithSpecificDeviceForUMC operation
+ */
+ public void receiveResultstartAbnormalTaskWithSpecificDeviceForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from startAbnormalTaskWithSpecificDeviceForUMC operation
+ */
+ public void receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosCCuserGroupV4FromUMC method
+ * override this method for handling normal response from getDdosCCuserGroupV4FromUMC operation
+ */
+ public void receiveResultgetDdosCCuserGroupV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosCCuserGroupV4FromUMC operation
+ */
+ public void receiveErrorgetDdosCCuserGroupV4FromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getFingerprintIcmpFromUMC method
+ * override this method for handling normal response from getFingerprintIcmpFromUMC operation
+ */
+ public void receiveResultgetFingerprintIcmpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getFingerprintIcmpFromUMC operation
+ */
+ public void receiveErrorgetFingerprintIcmpFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delFingerprintTcpForUMC method
+ * override this method for handling normal response from delFingerprintTcpForUMC operation
+ */
+ public void receiveResultdelFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delFingerprintTcpForUMC operation
+ */
+ public void receiveErrordelFingerprintTcpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDnsSecDomainGlobalV4ForUMC method
+ * override this method for handling normal response from delDnsSecDomainGlobalV4ForUMC operation
+ */
+ public void receiveResultdelDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDnsSecDomainGlobalV4ForUMC operation
+ */
+ public void receiveErrordelDnsSecDomainGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosHttpGetUriCusProV4ForUMC method
+ * override this method for handling normal response from delDdosHttpGetUriCusProV4ForUMC operation
+ */
+ public void receiveResultdelDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosHttpGetUriCusProV4ForUMC operation
+ */
+ public void receiveErrordelDdosHttpGetUriCusProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addFingerprintTcpForUMC method
+ * override this method for handling normal response from addFingerprintTcpForUMC operation
+ */
+ public void receiveResultaddFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addFingerprintTcpForUMC operation
+ */
+ public void receiveErroraddFingerprintTcpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllProtectionStrategyTemplateFromUMC method
+ * override this method for handling normal response from getAllProtectionStrategyTemplateFromUMC operation
+ */
+ public void receiveResultgetAllProtectionStrategyTemplateFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllProtectionStrategyTemplateFromUMC operation
+ */
+ public void receiveErrorgetAllProtectionStrategyTemplateFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addFingerprintIcmpForUMC method
+ * override this method for handling normal response from addFingerprintIcmpForUMC operation
+ */
+ public void receiveResultaddFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addFingerprintIcmpForUMC operation
+ */
+ public void receiveErroraddFingerprintIcmpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modifyDetectionObjectForUMC method
+ * override this method for handling normal response from modifyDetectionObjectForUMC operation
+ */
+ public void receiveResultmodifyDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modifyDetectionObjectForUMC operation
+ */
+ public void receiveErrormodifyDetectionObjectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for deleteProtectionObjectIPRangeForUMC method
+ * override this method for handling normal response from deleteProtectionObjectIPRangeForUMC operation
+ */
+ public void receiveResultdeleteProtectionObjectIPRangeForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from deleteProtectionObjectIPRangeForUMC operation
+ */
+ public void receiveErrordeleteProtectionObjectIPRangeForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modBlackHoleAutoStrategyForUMC method
+ * override this method for handling normal response from modBlackHoleAutoStrategyForUMC operation
+ */
+ public void receiveResultmodBlackHoleAutoStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modBlackHoleAutoStrategyForUMC operation
+ */
+ public void receiveErrormodBlackHoleAutoStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modACProtectionForUMC method
+ * override this method for handling normal response from modACProtectionForUMC operation
+ */
+ public void receiveResultmodACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modACProtectionForUMC operation
+ */
+ public void receiveErrormodACProtectionForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDdosHttpGetUriCusProV4ForUMC method
+ * override this method for handling normal response from modDdosHttpGetUriCusProV4ForUMC operation
+ */
+ public void receiveResultmodDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDdosHttpGetUriCusProV4ForUMC operation
+ */
+ public void receiveErrormodDdosHttpGetUriCusProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDdosCCuserGroupV4ForUMC method
+ * override this method for handling normal response from modDdosCCuserGroupV4ForUMC operation
+ */
+ public void receiveResultmodDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDdosCCuserGroupV4ForUMC operation
+ */
+ public void receiveErrormodDdosCCuserGroupV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalIcmpFragFromUMC method
+ * override this method for handling normal response from getDdosGlobalIcmpFragFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalIcmpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalIcmpFragFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalIcmpFragFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDnsDomainCustomV4ForUMC method
+ * override this method for handling normal response from modDnsDomainCustomV4ForUMC operation
+ */
+ public void receiveResultmodDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDnsDomainCustomV4ForUMC operation
+ */
+ public void receiveErrormodDnsDomainCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modBlackHoleManualStrategyForUMC method
+ * override this method for handling normal response from modBlackHoleManualStrategyForUMC operation
+ */
+ public void receiveResultmodBlackHoleManualStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modBlackHoleManualStrategyForUMC operation
+ */
+ public void receiveErrormodBlackHoleManualStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllBlackHoleManualStrategyFromUMC method
+ * override this method for handling normal response from getAllBlackHoleManualStrategyFromUMC operation
+ */
+ public void receiveResultgetAllBlackHoleManualStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllBlackHoleManualStrategyFromUMC operation
+ */
+ public void receiveErrorgetAllBlackHoleManualStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDnsSipGlobalV4ForUMC method
+ * override this method for handling normal response from modDnsSipGlobalV4ForUMC operation
+ */
+ public void receiveResultmodDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDnsSipGlobalV4ForUMC operation
+ */
+ public void receiveErrormodDnsSipGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addOneKeyDetection method
+ * override this method for handling normal response from addOneKeyDetection operation
+ */
+ public void receiveResultaddOneKeyDetection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addOneKeyDetection operation
+ */
+ public void receiveErroraddOneKeyDetection(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosHttpGetUriGloProV4ForUMC method
+ * override this method for handling normal response from addDdosHttpGetUriGloProV4ForUMC operation
+ */
+ public void receiveResultaddDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosHttpGetUriGloProV4ForUMC operation
+ */
+ public void receiveErroraddDdosHttpGetUriGloProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addBlackHoleManualStrategyForUMC method
+ * override this method for handling normal response from addBlackHoleManualStrategyForUMC operation
+ */
+ public void receiveResultaddBlackHoleManualStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addBlackHoleManualStrategyForUMC operation
+ */
+ public void receiveErroraddBlackHoleManualStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalUdpLengthForUMC method
+ * override this method for handling normal response from setDdosGlobalUdpLengthForUMC operation
+ */
+ public void receiveResultsetDdosGlobalUdpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalUdpLengthForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalUdpLengthForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addOneKeyRestore method
+ * override this method for handling normal response from addOneKeyRestore operation
+ */
+ public void receiveResultaddOneKeyRestore(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addOneKeyRestore operation
+ */
+ public void receiveErroraddOneKeyRestore(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for geDnsDomainCustomV4TFromUMC method
+ * override this method for handling normal response from geDnsDomainCustomV4TFromUMC operation
+ */
+ public void receiveResultgeDnsDomainCustomV4TFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from geDnsDomainCustomV4TFromUMC operation
+ */
+ public void receiveErrorgeDnsDomainCustomV4TFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addCompleteAnomalyDetectionStrategyForUMC method
+ * override this method for handling normal response from addCompleteAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveResultaddCompleteAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addCompleteAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveErroraddCompleteAnomalyDetectionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDnsSipCustomV4ForUMC method
+ * override this method for handling normal response from delDnsSipCustomV4ForUMC operation
+ */
+ public void receiveResultdelDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDnsSipCustomV4ForUMC operation
+ */
+ public void receiveErrordelDnsSipCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modFingerprintUdpForUMC method
+ * override this method for handling normal response from modFingerprintUdpForUMC operation
+ */
+ public void receiveResultmodFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modFingerprintUdpForUMC operation
+ */
+ public void receiveErrormodFingerprintUdpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalTcpFragForUMC method
+ * override this method for handling normal response from setDdosGlobalTcpFragForUMC operation
+ */
+ public void receiveResultsetDdosGlobalTcpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalTcpFragForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalTcpFragForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalTcpStateFromUMC method
+ * override this method for handling normal response from getDdosGlobalTcpStateFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalTcpStateFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalTcpStateFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalTcpStateFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modFingerprintTcpForUMC method
+ * override this method for handling normal response from modFingerprintTcpForUMC operation
+ */
+ public void receiveResultmodFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modFingerprintTcpForUMC operation
+ */
+ public void receiveErrormodFingerprintTcpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDnsDomainGlobalV4ForUMC method
+ * override this method for handling normal response from addDnsDomainGlobalV4ForUMC operation
+ */
+ public void receiveResultaddDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDnsDomainGlobalV4ForUMC operation
+ */
+ public void receiveErroraddDnsDomainGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delBlackAndWhiteListProtection method
+ * override this method for handling normal response from delBlackAndWhiteListProtection operation
+ */
+ public void receiveResultdelBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delBlackAndWhiteListProtection operation
+ */
+ public void receiveErrordelBlackAndWhiteListProtection(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalIcmpFragForUMC method
+ * override this method for handling normal response from setDdosGlobalIcmpFragForUMC operation
+ */
+ public void receiveResultsetDdosGlobalIcmpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalIcmpFragForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalIcmpFragForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalTcpFlagFromUMC method
+ * override this method for handling normal response from getDdosGlobalTcpFlagFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalTcpFlagFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalTcpFlagFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalTcpFlagFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for startBypassManualTractionStrategyForUMC method
+ * override this method for handling normal response from startBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveResultstartBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from startBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveErrorstartBypassManualTractionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addFingerprintUdpForUMC method
+ * override this method for handling normal response from addFingerprintUdpForUMC operation
+ */
+ public void receiveResultaddFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addFingerprintUdpForUMC operation
+ */
+ public void receiveErroraddFingerprintUdpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosDnsRetryProtectForUMC method
+ * override this method for handling normal response from addDdosDnsRetryProtectForUMC operation
+ */
+ public void receiveResultaddDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosDnsRetryProtectForUMC operation
+ */
+ public void receiveErroraddDdosDnsRetryProtectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllBlackHoleAutoStrategyFromUMC method
+ * override this method for handling normal response from getAllBlackHoleAutoStrategyFromUMC operation
+ */
+ public void receiveResultgetAllBlackHoleAutoStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllBlackHoleAutoStrategyFromUMC operation
+ */
+ public void receiveErrorgetAllBlackHoleAutoStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDnsDomainGlobalV4FromUMC method
+ * override this method for handling normal response from getDnsDomainGlobalV4FromUMC operation
+ */
+ public void receiveResultgetDnsDomainGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDnsDomainGlobalV4FromUMC operation
+ */
+ public void receiveErrorgetDnsDomainGlobalV4FromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosHttpGetSipGloProV4ForUMC method
+ * override this method for handling normal response from delDdosHttpGetSipGloProV4ForUMC operation
+ */
+ public void receiveResultdelDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosHttpGetSipGloProV4ForUMC operation
+ */
+ public void receiveErrordelDdosHttpGetSipGloProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAnomalyDetectionStrategyFromUMC method
+ * override this method for handling normal response from getAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveResultgetAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveErrorgetAnomalyDetectionStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosCCuserGroupV4ForUMC method
+ * override this method for handling normal response from addDdosCCuserGroupV4ForUMC operation
+ */
+ public void receiveResultaddDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosCCuserGroupV4ForUMC operation
+ */
+ public void receiveErroraddDdosCCuserGroupV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDnsSecDomainGlobalV4ForUMC method
+ * override this method for handling normal response from modDnsSecDomainGlobalV4ForUMC operation
+ */
+ public void receiveResultmodDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDnsSecDomainGlobalV4ForUMC operation
+ */
+ public void receiveErrormodDnsSecDomainGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosHttpGetSipCusProV4ForUMC method
+ * override this method for handling normal response from addDdosHttpGetSipCusProV4ForUMC operation
+ */
+ public void receiveResultaddDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosHttpGetSipCusProV4ForUMC operation
+ */
+ public void receiveErroraddDdosHttpGetSipCusProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalAckPayloadFromUMC method
+ * override this method for handling normal response from getDdosGlobalAckPayloadFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalAckPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalAckPayloadFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalAckPayloadFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalTcpFragFromUMC method
+ * override this method for handling normal response from getDdosGlobalTcpFragFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalTcpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalTcpFragFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalTcpFragFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for stopBypassManualTractionStrategyForUMC method
+ * override this method for handling normal response from stopBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveResultstopBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from stopBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveErrorstopBypassManualTractionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addFingerprintOtherForUMC method
+ * override this method for handling normal response from addFingerprintOtherForUMC operation
+ */
+ public void receiveResultaddFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addFingerprintOtherForUMC operation
+ */
+ public void receiveErroraddFingerprintOtherForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDdosHttpGetSipGloProV4ForUMC method
+ * override this method for handling normal response from modDdosHttpGetSipGloProV4ForUMC operation
+ */
+ public void receiveResultmodDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDdosHttpGetSipGloProV4ForUMC operation
+ */
+ public void receiveErrormodDdosHttpGetSipGloProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllAnomalyDetectionStrategyFromUMC method
+ * override this method for handling normal response from getAllAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveResultgetAllAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveErrorgetAllAnomalyDetectionStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for startAbnormalTaskForUMC method
+ * override this method for handling normal response from startAbnormalTaskForUMC operation
+ */
+ public void receiveResultstartAbnormalTaskForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from startAbnormalTaskForUMC operation
+ */
+ public void receiveErrorstartAbnormalTaskForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modBlackAndWhiteListProtection method
+ * override this method for handling normal response from modBlackAndWhiteListProtection operation
+ */
+ public void receiveResultmodBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modBlackAndWhiteListProtection operation
+ */
+ public void receiveErrormodBlackAndWhiteListProtection(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDnsSipGlobalV4ForUMC method
+ * override this method for handling normal response from addDnsSipGlobalV4ForUMC operation
+ */
+ public void receiveResultaddDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDnsSipGlobalV4ForUMC operation
+ */
+ public void receiveErroraddDnsSipGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addAnomalyDetectionStrategyForUMC method
+ * override this method for handling normal response from addAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveResultaddAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveErroraddAnomalyDetectionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosACProtectionForUMC method
+ * override this method for handling normal response from addDdosACProtectionForUMC operation
+ */
+ public void receiveResultaddDdosACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosACProtectionForUMC operation
+ */
+ public void receiveErroraddDdosACProtectionForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosHttpGetSipCusProV4ForUMC method
+ * override this method for handling normal response from delDdosHttpGetSipCusProV4ForUMC operation
+ */
+ public void receiveResultdelDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosHttpGetSipCusProV4ForUMC operation
+ */
+ public void receiveErrordelDdosHttpGetSipCusProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalUdpLengthFromUMC method
+ * override this method for handling normal response from getDdosGlobalUdpLengthFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalUdpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalUdpLengthFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalUdpLengthFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosACProtectionForUMC method
+ * override this method for handling normal response from delDdosACProtectionForUMC operation
+ */
+ public void receiveResultdelDdosACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosACProtectionForUMC operation
+ */
+ public void receiveErrordelDdosACProtectionForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDdosHttpGetUriGloProV4ForUMC method
+ * override this method for handling normal response from modDdosHttpGetUriGloProV4ForUMC operation
+ */
+ public void receiveResultmodDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDdosHttpGetUriGloProV4ForUMC operation
+ */
+ public void receiveErrormodDdosHttpGetUriGloProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosHttpGetUriGloProV4ForUMC method
+ * override this method for handling normal response from delDdosHttpGetUriGloProV4ForUMC operation
+ */
+ public void receiveResultdelDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosHttpGetUriGloProV4ForUMC operation
+ */
+ public void receiveErrordelDdosHttpGetUriGloProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDnsDomainGlobalV4ForUMC method
+ * override this method for handling normal response from delDnsDomainGlobalV4ForUMC operation
+ */
+ public void receiveResultdelDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDnsDomainGlobalV4ForUMC operation
+ */
+ public void receiveErrordelDnsDomainGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDnsDomainCustomV4ForUMC method
+ * override this method for handling normal response from delDnsDomainCustomV4ForUMC operation
+ */
+ public void receiveResultdelDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDnsDomainCustomV4ForUMC operation
+ */
+ public void receiveErrordelDnsDomainCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDnsSecDomainCustomV4FromUMC method
+ * override this method for handling normal response from getDnsSecDomainCustomV4FromUMC operation
+ */
+ public void receiveResultgetDnsSecDomainCustomV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDnsSecDomainCustomV4FromUMC operation
+ */
+ public void receiveErrorgetDnsSecDomainCustomV4FromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllProtectDevices method
+ * override this method for handling normal response from getAllProtectDevices operation
+ */
+ public void receiveResultgetAllProtectDevices(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllProtectDevices operation
+ */
+ public void receiveErrorgetAllProtectDevices(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delAnomalyDetectionStrategyForUMC method
+ * override this method for handling normal response from delAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveResultdelAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveErrordelAnomalyDetectionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for deleteCompleteAnomalyDetectionStrategyForUMC method
+ * override this method for handling normal response from deleteCompleteAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveResultdeleteCompleteAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from deleteCompleteAnomalyDetectionStrategyForUMC operation
+ */
+ public void receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modBypassManualTractionStrategyForUMC method
+ * override this method for handling normal response from modBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveResultmodBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveErrormodBypassManualTractionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDnsSecDomainCustomV4ForUMC method
+ * override this method for handling normal response from delDnsSecDomainCustomV4ForUMC operation
+ */
+ public void receiveResultdelDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDnsSecDomainCustomV4ForUMC operation
+ */
+ public void receiveErrordelDnsSecDomainCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalOtherFragForUMC method
+ * override this method for handling normal response from setDdosGlobalOtherFragForUMC operation
+ */
+ public void receiveResultsetDdosGlobalOtherFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalOtherFragForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalOtherFragForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for linkProtectionStrategyTemplateForUMC method
+ * override this method for handling normal response from linkProtectionStrategyTemplateForUMC operation
+ */
+ public void receiveResultlinkProtectionStrategyTemplateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from linkProtectionStrategyTemplateForUMC operation
+ */
+ public void receiveErrorlinkProtectionStrategyTemplateForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getFingerprintUdpFromUMC method
+ * override this method for handling normal response from getFingerprintUdpFromUMC operation
+ */
+ public void receiveResultgetFingerprintUdpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getFingerprintUdpFromUMC operation
+ */
+ public void receiveErrorgetFingerprintUdpFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalTcpLengthForUMC method
+ * override this method for handling normal response from setDdosGlobalTcpLengthForUMC operation
+ */
+ public void receiveResultsetDdosGlobalTcpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalTcpLengthForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalTcpLengthForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalIcmpPayloadForUMC method
+ * override this method for handling normal response from setDdosGlobalIcmpPayloadForUMC operation
+ */
+ public void receiveResultsetDdosGlobalIcmpPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalIcmpPayloadForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalIcmpPayloadForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for deleteProtectionObjectForUMC method
+ * override this method for handling normal response from deleteProtectionObjectForUMC operation
+ */
+ public void receiveResultdeleteProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from deleteProtectionObjectForUMC operation
+ */
+ public void receiveErrordeleteProtectionObjectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delFingerprintOtherForUMC method
+ * override this method for handling normal response from delFingerprintOtherForUMC operation
+ */
+ public void receiveResultdelFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delFingerprintOtherForUMC operation
+ */
+ public void receiveErrordelFingerprintOtherForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosHttpGetUriGloProV4FromUMC method
+ * override this method for handling normal response from getDdosHttpGetUriGloProV4FromUMC operation
+ */
+ public void receiveResultgetDdosHttpGetUriGloProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosHttpGetUriGloProV4FromUMC operation
+ */
+ public void receiveErrorgetDdosHttpGetUriGloProV4FromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllProtectionTargetWithStrategyAssociationRelationshipForUMC method
+ * override this method for handling normal response from getAllProtectionTargetWithStrategyAssociationRelationshipForUMC operation
+ */
+ public void receiveResultgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllProtectionTargetWithStrategyAssociationRelationshipForUMC operation
+ */
+ public void receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDetectionObjectForUMC method
+ * override this method for handling normal response from addDetectionObjectForUMC operation
+ */
+ public void receiveResultaddDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDetectionObjectForUMC operation
+ */
+ public void receiveErroraddDetectionObjectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modifyProtectionObjectForUMC method
+ * override this method for handling normal response from modifyProtectionObjectForUMC operation
+ */
+ public void receiveResultmodifyProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modifyProtectionObjectForUMC operation
+ */
+ public void receiveErrormodifyProtectionObjectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalUdpFragForUMC method
+ * override this method for handling normal response from setDdosGlobalUdpFragForUMC operation
+ */
+ public void receiveResultsetDdosGlobalUdpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalUdpFragForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalUdpFragForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalIcmpLengthForUMC method
+ * override this method for handling normal response from setDdosGlobalIcmpLengthForUMC operation
+ */
+ public void receiveResultsetDdosGlobalIcmpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalIcmpLengthForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalIcmpLengthForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalUdpFragFromUMC method
+ * override this method for handling normal response from getDdosGlobalUdpFragFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalUdpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalUdpFragFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalUdpFragFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getFingerprintTcpFromUMC method
+ * override this method for handling normal response from getFingerprintTcpFromUMC operation
+ */
+ public void receiveResultgetFingerprintTcpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getFingerprintTcpFromUMC operation
+ */
+ public void receiveErrorgetFingerprintTcpFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalTcpFlagForUMC method
+ * override this method for handling normal response from setDdosGlobalTcpFlagForUMC operation
+ */
+ public void receiveResultsetDdosGlobalTcpFlagForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalTcpFlagForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalTcpFlagForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addBlackHoleAutoStrategyForUMC method
+ * override this method for handling normal response from addBlackHoleAutoStrategyForUMC operation
+ */
+ public void receiveResultaddBlackHoleAutoStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addBlackHoleAutoStrategyForUMC operation
+ */
+ public void receiveErroraddBlackHoleAutoStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getCompleteAnomalyDetectionStrategyFromUMC method
+ * override this method for handling normal response from getCompleteAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveResultgetCompleteAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getCompleteAnomalyDetectionStrategyFromUMC operation
+ */
+ public void receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modFingerprintOtherForUMC method
+ * override this method for handling normal response from modFingerprintOtherForUMC operation
+ */
+ public void receiveResultmodFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modFingerprintOtherForUMC operation
+ */
+ public void receiveErrormodFingerprintOtherForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosHttpGetUriCusProV4ForUMC method
+ * override this method for handling normal response from addDdosHttpGetUriCusProV4ForUMC operation
+ */
+ public void receiveResultaddDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosHttpGetUriCusProV4ForUMC operation
+ */
+ public void receiveErroraddDdosHttpGetUriCusProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addBypassManualTractionStrategyForUMC method
+ * override this method for handling normal response from addBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveResultaddBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveErroraddBypassManualTractionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllDetectionObjectFromUMC method
+ * override this method for handling normal response from getAllDetectionObjectFromUMC operation
+ */
+ public void receiveResultgetAllDetectionObjectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllDetectionObjectFromUMC operation
+ */
+ public void receiveErrorgetAllDetectionObjectFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDdosHttpGetSipCusProV4ForUMC method
+ * override this method for handling normal response from modDdosHttpGetSipCusProV4ForUMC operation
+ */
+ public void receiveResultmodDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDdosHttpGetSipCusProV4ForUMC operation
+ */
+ public void receiveErrormodDdosHttpGetSipCusProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDnsSecDomainGlobalV4FromUMC method
+ * override this method for handling normal response from getDnsSecDomainGlobalV4FromUMC operation
+ */
+ public void receiveResultgetDnsSecDomainGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDnsSecDomainGlobalV4FromUMC operation
+ */
+ public void receiveErrorgetDnsSecDomainGlobalV4FromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDdosCCuserGroupV4ForUMC method
+ * override this method for handling normal response from delDdosCCuserGroupV4ForUMC operation
+ */
+ public void receiveResultdelDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDdosCCuserGroupV4ForUMC operation
+ */
+ public void receiveErrordelDdosCCuserGroupV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalOtherFragFromUMC method
+ * override this method for handling normal response from getDdosGlobalOtherFragFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalOtherFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalOtherFragFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalOtherFragFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modFingerprintIcmpForUMC method
+ * override this method for handling normal response from modFingerprintIcmpForUMC operation
+ */
+ public void receiveResultmodFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modFingerprintIcmpForUMC operation
+ */
+ public void receiveErrormodFingerprintIcmpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for stopBlackHoleStrategyForUMC method
+ * override this method for handling normal response from stopBlackHoleStrategyForUMC operation
+ */
+ public void receiveResultstopBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from stopBlackHoleStrategyForUMC operation
+ */
+ public void receiveErrorstopBlackHoleStrategyForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDnsSipGlobalV4FromUMC method
+ * override this method for handling normal response from getDnsSipGlobalV4FromUMC operation
+ */
+ public void receiveResultgetDnsSipGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDnsSipGlobalV4FromUMC operation
+ */
+ public void receiveErrorgetDnsSipGlobalV4FromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getAllProtectionObjectFromUMC method
+ * override this method for handling normal response from getAllProtectionObjectFromUMC operation
+ */
+ public void receiveResultgetAllProtectionObjectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getAllProtectionObjectFromUMC operation
+ */
+ public void receiveErrorgetAllProtectionObjectFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalUdpPayloadForUMC method
+ * override this method for handling normal response from setDdosGlobalUdpPayloadForUMC operation
+ */
+ public void receiveResultsetDdosGlobalUdpPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalUdpPayloadForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalUdpPayloadForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosHttpGetUriCusProV4FromUMC method
+ * override this method for handling normal response from getDdosHttpGetUriCusProV4FromUMC operation
+ */
+ public void receiveResultgetDdosHttpGetUriCusProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosHttpGetUriCusProV4FromUMC operation
+ */
+ public void receiveErrorgetDdosHttpGetUriCusProV4FromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delBypassManualTractionStrategyForUMC method
+ * override this method for handling normal response from delBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveResultdelBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delBypassManualTractionStrategyForUMC operation
+ */
+ public void receiveErrordelBypassManualTractionStrategyForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getFingerprintOtherFromUMC method
+ * override this method for handling normal response from getFingerprintOtherFromUMC operation
+ */
+ public void receiveResultgetFingerprintOtherFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getFingerprintOtherFromUMC operation
+ */
+ public void receiveErrorgetFingerprintOtherFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for stopAbnormalTaskForUMC method
+ * override this method for handling normal response from stopAbnormalTaskForUMC operation
+ */
+ public void receiveResultstopAbnormalTaskForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from stopAbnormalTaskForUMC operation
+ */
+ public void receiveErrorstopAbnormalTaskForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDdosHttpGetSipGloProV4ForUMC method
+ * override this method for handling normal response from addDdosHttpGetSipGloProV4ForUMC operation
+ */
+ public void receiveResultaddDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDdosHttpGetSipGloProV4ForUMC operation
+ */
+ public void receiveErroraddDdosHttpGetSipGloProV4ForUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalTcpStateForUMC method
+ * override this method for handling normal response from setDdosGlobalTcpStateForUMC operation
+ */
+ public void receiveResultsetDdosGlobalTcpStateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalTcpStateForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalTcpStateForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addProtectionObjectForUMC method
+ * override this method for handling normal response from addProtectionObjectForUMC operation
+ */
+ public void receiveResultaddProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addProtectionObjectForUMC operation
+ */
+ public void receiveErroraddProtectionObjectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDnsSecDomainCustomV4ForUMC method
+ * override this method for handling normal response from modDnsSecDomainCustomV4ForUMC operation
+ */
+ public void receiveResultmodDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDnsSecDomainCustomV4ForUMC operation
+ */
+ public void receiveErrormodDnsSecDomainCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for deleteDetectionObjectForUMC method
+ * override this method for handling normal response from deleteDetectionObjectForUMC operation
+ */
+ public void receiveResultdeleteDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from deleteDetectionObjectForUMC operation
+ */
+ public void receiveErrordeleteDetectionObjectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delFingerprintUdpForUMC method
+ * override this method for handling normal response from delFingerprintUdpForUMC operation
+ */
+ public void receiveResultdelFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delFingerprintUdpForUMC operation
+ */
+ public void receiveErrordelFingerprintUdpForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalAckPayloadForUMC method
+ * override this method for handling normal response from setDdosGlobalAckPayloadForUMC operation
+ */
+ public void receiveResultsetDdosGlobalAckPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalAckPayloadForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalAckPayloadForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for modDdosDnsRetryProtectForUMC method
+ * override this method for handling normal response from modDdosDnsRetryProtectForUMC operation
+ */
+ public void receiveResultmodDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from modDdosDnsRetryProtectForUMC operation
+ */
+ public void receiveErrormodDdosDnsRetryProtectForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addDnsDomainCustomV4ForUMC method
+ * override this method for handling normal response from addDnsDomainCustomV4ForUMC operation
+ */
+ public void receiveResultaddDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addDnsDomainCustomV4ForUMC operation
+ */
+ public void receiveErroraddDnsDomainCustomV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for setDdosGlobalSynFloodForUMC method
+ * override this method for handling normal response from setDdosGlobalSynFloodForUMC operation
+ */
+ public void receiveResultsetDdosGlobalSynFloodForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from setDdosGlobalSynFloodForUMC operation
+ */
+ public void receiveErrorsetDdosGlobalSynFloodForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for addBlackAndWhiteListProtection method
+ * override this method for handling normal response from addBlackAndWhiteListProtection operation
+ */
+ public void receiveResultaddBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from addBlackAndWhiteListProtection operation
+ */
+ public void receiveErroraddBlackAndWhiteListProtection(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delDnsSipGlobalV4ForUMC method
+ * override this method for handling normal response from delDnsSipGlobalV4ForUMC operation
+ */
+ public void receiveResultdelDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delDnsSipGlobalV4ForUMC operation
+ */
+ public void receiveErrordelDnsSipGlobalV4ForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalIcmpLengthFromUMC method
+ * override this method for handling normal response from getDdosGlobalIcmpLengthFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalIcmpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalIcmpLengthFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalIcmpLengthFromUMC(
+ java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosACProtectionFromUMC method
+ * override this method for handling normal response from getDdosACProtectionFromUMC operation
+ */
+ public void receiveResultgetDdosACProtectionFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosACProtectionFromUMC operation
+ */
+ public void receiveErrorgetDdosACProtectionFromUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for delBlackHoleStrategyForUMC method
+ * override this method for handling normal response from delBlackHoleStrategyForUMC operation
+ */
+ public void receiveResultdelBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from delBlackHoleStrategyForUMC operation
+ */
+ public void receiveErrordelBlackHoleStrategyForUMC(java.lang.Exception e) {
+ }
+
+ /**
+ * auto generated Axis2 call back method for getDdosGlobalSynFloodFromUMC method
+ * override this method for handling normal response from getDdosGlobalSynFloodFromUMC operation
+ */
+ public void receiveResultgetDdosGlobalSynFloodFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse result) {
+ }
+
+ /**
+ * auto generated Axis2 Error handler
+ * override this method for handling error response from getDdosGlobalSynFloodFromUMC operation
+ */
+ public void receiveErrorgetDdosGlobalSynFloodFromUMC(java.lang.Exception e) {
+ }
+}
diff --git a/src/test/java/com/cmcc/hy/phoenix/dptech/AbnormalFlowCleaningServiceStub.java b/src/test/java/com/cmcc/hy/phoenix/dptech/AbnormalFlowCleaningServiceStub.java
new file mode 100644
index 00000000..37119f70
--- /dev/null
+++ b/src/test/java/com/cmcc/hy/phoenix/dptech/AbnormalFlowCleaningServiceStub.java
@@ -0,0 +1,243712 @@
+/**
+ * AbnormalFlowCleaningServiceStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: 1.7.9 Built on : Nov 16, 2018 (12:05:37 GMT)
+ */
+package com.cmcc.hy.phoenix.dptech;
+import org.apache.axiom.om.*;
+
+/*
+ * AbnormalFlowCleaningServiceStub java implementation
+ */
+public class AbnormalFlowCleaningServiceStub extends org.apache.axis2.client.Stub {
+ private static int counter = 0;
+ protected org.apache.axis2.description.AxisOperation[] _operations;
+
+ //hashmaps to keep the fault mapping
+ private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
+ private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
+ private java.util.HashMap faultMessageMap = new java.util.HashMap();
+ private javax.xml.namespace.QName[] opNameArray = null;
+
+ /**
+ *Constructor that takes in a configContext
+ */
+ public AbnormalFlowCleaningServiceStub(
+ org.apache.axis2.context.ConfigurationContext configurationContext,
+ java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
+ this(configurationContext, targetEndpoint, false);
+ }
+
+ private void addSoapSecurityHeaders(org.apache.axis2.client.ServiceClient _serviceClient){
+ OMFactory factory = OMAbstractFactory.getOMFactory();
+
+ OMNamespace namespaceWSSE = factory
+ .createOMNamespace(
+ "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
+ "wsse");
+
+ OMElement element = factory.createOMElement("Security", namespaceWSSE);
+
+ OMAttribute attribute = factory.createOMAttribute("mustUnderstand",
+ null, "1");
+
+ element.addAttribute(attribute);
+
+ OMElement header = factory.createOMElement("Security", namespaceWSSE);
+
+ OMElement element2 = factory.createOMElement("UsernameToken",
+ namespaceWSSE);
+
+ OMNamespace namespaceWSU = factory
+ .createOMNamespace(
+ "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd",
+ "wsu");
+
+ attribute = factory.createOMAttribute("Id", namespaceWSU,
+ "UsernameToken-1");
+
+ element2.addAttribute(attribute);
+
+ element.addChild(element2);
+
+ OMElement element3 = factory.createOMElement("Username", namespaceWSSE);
+
+ element3.setText("admin");
+
+ OMElement element4 = factory.createOMElement("Password", namespaceWSSE);
+
+ attribute = factory
+ .createOMAttribute(
+ "Type",
+ null,
+ "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
+
+ element4.setText("UMCAdministrator");
+
+ element2.addChild(element3);
+ element2.addChild(element4);
+
+ _serviceClient.addHeader(header);
+ }
+
+ /**
+ * Constructor that takes in a configContext and useseperate listner
+ */
+ public AbnormalFlowCleaningServiceStub(
+ org.apache.axis2.context.ConfigurationContext configurationContext,
+ java.lang.String targetEndpoint, boolean useSeparateListener)
+ throws org.apache.axis2.AxisFault {
+ //To populate AxisService
+ populateAxisService();
+ populateFaults();
+
+ _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,
+ _service);
+
+ _serviceClient.getOptions()
+ .setTo(new org.apache.axis2.addressing.EndpointReference(
+ targetEndpoint));
+ _serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
+
+ addSoapSecurityHeaders(_serviceClient);
+ }
+
+ /**
+ * Default Constructor
+ */
+ public AbnormalFlowCleaningServiceStub(
+ org.apache.axis2.context.ConfigurationContext configurationContext)
+ throws org.apache.axis2.AxisFault {
+ this(configurationContext,
+ "http://10.88.77.15/UMC/service/AbnormalFlowCleaningService");
+ }
+
+ /**
+ * Default Constructor
+ */
+ public AbnormalFlowCleaningServiceStub() throws org.apache.axis2.AxisFault {
+ this("http://10.88.77.15/UMC/service/AbnormalFlowCleaningService");
+ }
+
+ /**
+ * Constructor taking the target endpoint
+ */
+ public AbnormalFlowCleaningServiceStub(java.lang.String targetEndpoint)
+ throws org.apache.axis2.AxisFault {
+ this(null, targetEndpoint);
+ }
+
+ private static synchronized java.lang.String getUniqueSuffix() {
+ // reset the counter if it is greater than 99999
+ if (counter > 99999) {
+ counter = 0;
+ }
+
+ counter = counter + 1;
+
+ return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +
+ "_" + counter;
+ }
+
+ private void populateAxisService() throws org.apache.axis2.AxisFault {
+ //creating the Service with a unique name
+ _service = new org.apache.axis2.description.AxisService(
+ "AbnormalFlowCleaningService" + getUniqueSuffix());
+ addAnonymousOperations();
+
+ //creating the operations
+ org.apache.axis2.description.AxisOperation __operation;
+
+ _operations = new org.apache.axis2.description.AxisOperation[142];
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDnsSipCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[0] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDnsSipCustomV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[1] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalIcmpPayloadFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[2] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[3] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDnsSecDomainCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[4] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDnsSipCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[5] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDnsSecDomainGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[6] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[7] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllDetectDevices"));
+ _service.addOperation(__operation);
+
+ _operations[8] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "startBlackHoleStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[9] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosHttpGetSipCusProV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[10] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosDnsRetryProtectFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[11] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalTcpLengthFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[12] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosHttpGetSipGloProV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[13] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllBlackAndWhiteListFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[14] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalUdpPayloadFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[15] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosDnsRetryProtectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[16] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[17] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[18] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delFingerprintIcmpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[19] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDnsDomainGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[20] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[21] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosCCuserGroupV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[22] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getFingerprintIcmpFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[23] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delFingerprintTcpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[24] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDnsSecDomainGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[25] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosHttpGetUriCusProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[26] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addFingerprintTcpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[27] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllProtectionStrategyTemplateFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[28] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addFingerprintIcmpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[29] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modifyDetectionObjectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[30] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[31] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modBlackHoleAutoStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[32] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modACProtectionForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[33] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDdosHttpGetUriCusProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[34] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDdosCCuserGroupV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[35] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalIcmpFragFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[36] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDnsDomainCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[37] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modBlackHoleManualStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[38] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[39] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDnsSipGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[40] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addOneKeyDetection"));
+ _service.addOperation(__operation);
+
+ _operations[41] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosHttpGetUriGloProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[42] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addBlackHoleManualStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[43] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalUdpLengthForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[44] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addOneKeyRestore"));
+ _service.addOperation(__operation);
+
+ _operations[45] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "geDnsDomainCustomV4TFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[46] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[47] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDnsSipCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[48] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modFingerprintUdpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[49] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalTcpFragForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[50] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalTcpStateFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[51] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modFingerprintTcpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[52] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDnsDomainGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[53] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delBlackAndWhiteListProtection"));
+ _service.addOperation(__operation);
+
+ _operations[54] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalIcmpFragForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[55] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalTcpFlagFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[56] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "startBypassManualTractionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[57] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addFingerprintUdpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[58] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosDnsRetryProtectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[59] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[60] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDnsDomainGlobalV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[61] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosHttpGetSipGloProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[62] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[63] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosCCuserGroupV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[64] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDnsSecDomainGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[65] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosHttpGetSipCusProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[66] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalAckPayloadFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[67] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalTcpFragFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[68] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[69] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addFingerprintOtherForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[70] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDdosHttpGetSipGloProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[71] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[72] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "startAbnormalTaskForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[73] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modBlackAndWhiteListProtection"));
+ _service.addOperation(__operation);
+
+ _operations[74] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDnsSipGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[75] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addAnomalyDetectionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[76] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosACProtectionForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[77] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosHttpGetSipCusProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[78] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalUdpLengthFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[79] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosACProtectionForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[80] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDdosHttpGetUriGloProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[81] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosHttpGetUriGloProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[82] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDnsDomainGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[83] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDnsDomainCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[84] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDnsSecDomainCustomV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[85] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllProtectDevices"));
+ _service.addOperation(__operation);
+
+ _operations[86] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delAnomalyDetectionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[87] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[88] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[89] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDnsSecDomainCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[90] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalOtherFragForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[91] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[92] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getFingerprintUdpFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[93] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalTcpLengthForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[94] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalIcmpPayloadForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[95] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "deleteProtectionObjectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[96] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delFingerprintOtherForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[97] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosHttpGetUriGloProV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[98] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[99] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDetectionObjectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[100] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modifyProtectionObjectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[101] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalUdpFragForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[102] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalIcmpLengthForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[103] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalUdpFragFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[104] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getFingerprintTcpFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[105] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalTcpFlagForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[106] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addBlackHoleAutoStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[107] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[108] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modFingerprintOtherForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[109] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosHttpGetUriCusProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[110] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[111] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllDetectionObjectFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[112] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDdosHttpGetSipCusProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[113] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDnsSecDomainGlobalV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[114] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDdosCCuserGroupV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[115] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalOtherFragFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[116] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modFingerprintIcmpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[117] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "stopBlackHoleStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[118] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDnsSipGlobalV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[119] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllProtectionObjectFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[120] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalUdpPayloadForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[121] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosHttpGetUriCusProV4FromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[122] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[123] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getFingerprintOtherFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[124] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "stopAbnormalTaskForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[125] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDdosHttpGetSipGloProV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[126] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalTcpStateForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[127] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addProtectionObjectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[128] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDnsSecDomainCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[129] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "deleteDetectionObjectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[130] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delFingerprintUdpForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[131] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalAckPayloadForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[132] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modDdosDnsRetryProtectForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[133] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addDnsDomainCustomV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[134] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "setDdosGlobalSynFloodForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[135] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addBlackAndWhiteListProtection"));
+ _service.addOperation(__operation);
+
+ _operations[136] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delDnsSipGlobalV4ForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[137] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalIcmpLengthFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[138] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosACProtectionFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[139] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "delBlackHoleStrategyForUMC"));
+ _service.addOperation(__operation);
+
+ _operations[140] = __operation;
+
+ __operation = new org.apache.axis2.description.OutInAxisOperation();
+
+ __operation.setName(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getDdosGlobalSynFloodFromUMC"));
+ _service.addOperation(__operation);
+
+ _operations[141] = __operation;
+ }
+
+ //populates the faults
+ private void populateFaults() {
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDnsSipCustomV4ForUMC
+ * @param addDnsSipCustomV4ForUMC0
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse addDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC addDnsSipCustomV4ForUMC0)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSipCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSipCustomV4ForUMC0,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDnsSipCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addDnsSipCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDnsSipCustomV4ForUMC
+ * @param addDnsSipCustomV4ForUMC0
+ */
+ public void startaddDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC addDnsSipCustomV4ForUMC0,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSipCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSipCustomV4ForUMC0,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse.class);
+ callback.receiveResultaddDnsSipCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDnsSipCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDnsSipCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSipCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDnsSipCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[0].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[0].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDnsSipCustomV4FromUMC
+ * @param getDnsSipCustomV4FromUMC2
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse getDnsSipCustomV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC getDnsSipCustomV4FromUMC2)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSipCustomV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSipCustomV4FromUMC2,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDnsSipCustomV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipCustomV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getDnsSipCustomV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipCustomV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipCustomV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDnsSipCustomV4FromUMC
+ * @param getDnsSipCustomV4FromUMC2
+ */
+ public void startgetDnsSipCustomV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC getDnsSipCustomV4FromUMC2,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSipCustomV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSipCustomV4FromUMC2,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipCustomV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipCustomV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse.class);
+ callback.receiveResultgetDnsSipCustomV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipCustomV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipCustomV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipCustomV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDnsSipCustomV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[1].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[1].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalIcmpPayloadFromUMC
+ * @param getDdosGlobalIcmpPayloadFromUMC4
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse getDdosGlobalIcmpPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC getDdosGlobalIcmpPayloadFromUMC4)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalIcmpPayloadFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalIcmpPayloadFromUMC4,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalIcmpPayloadFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpPayloadFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpPayloadFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpPayloadFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpPayloadFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalIcmpPayloadFromUMC
+ * @param getDdosGlobalIcmpPayloadFromUMC4
+ */
+ public void startgetDdosGlobalIcmpPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC getDdosGlobalIcmpPayloadFromUMC4,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalIcmpPayloadFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalIcmpPayloadFromUMC4,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpPayloadFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpPayloadFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalIcmpPayloadFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpPayloadFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpPayloadFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpPayloadFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalIcmpPayloadFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[2].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[2].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#stopAbnormalTaskWithSpecificDeviceForUMC
+ * @param stopAbnormalTaskWithSpecificDeviceForUMC6
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse stopAbnormalTaskWithSpecificDeviceForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC stopAbnormalTaskWithSpecificDeviceForUMC6)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopAbnormalTaskWithSpecificDeviceForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopAbnormalTaskWithSpecificDeviceForUMC6,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskWithSpecificDeviceForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstopAbnormalTaskWithSpecificDeviceForUMC
+ * @param stopAbnormalTaskWithSpecificDeviceForUMC6
+ */
+ public void startstopAbnormalTaskWithSpecificDeviceForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC stopAbnormalTaskWithSpecificDeviceForUMC6,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopAbnormalTaskWithSpecificDeviceForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopAbnormalTaskWithSpecificDeviceForUMC6,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse.class);
+ callback.receiveResultstopAbnormalTaskWithSpecificDeviceForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskWithSpecificDeviceForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstopAbnormalTaskWithSpecificDeviceForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[3].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[3].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDnsSecDomainCustomV4ForUMC
+ * @param addDnsSecDomainCustomV4ForUMC8
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse addDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC addDnsSecDomainCustomV4ForUMC8)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSecDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSecDomainCustomV4ForUMC8,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDnsSecDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDnsSecDomainCustomV4ForUMC
+ * @param addDnsSecDomainCustomV4ForUMC8
+ */
+ public void startaddDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC addDnsSecDomainCustomV4ForUMC8,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSecDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSecDomainCustomV4ForUMC8,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse.class);
+ callback.receiveResultaddDnsSecDomainCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDnsSecDomainCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[4].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[4].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDnsSipCustomV4ForUMC
+ * @param modDnsSipCustomV4ForUMC10
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse modDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC modDnsSipCustomV4ForUMC10)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSipCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSipCustomV4ForUMC10,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDnsSipCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modDnsSipCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDnsSipCustomV4ForUMC
+ * @param modDnsSipCustomV4ForUMC10
+ */
+ public void startmodDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC modDnsSipCustomV4ForUMC10,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSipCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSipCustomV4ForUMC10,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse.class);
+ callback.receiveResultmodDnsSipCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDnsSipCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDnsSipCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSipCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDnsSipCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[5].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[5].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDnsSecDomainGlobalV4ForUMC
+ * @param addDnsSecDomainGlobalV4ForUMC12
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse addDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC addDnsSecDomainGlobalV4ForUMC12)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSecDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSecDomainGlobalV4ForUMC12,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDnsSecDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDnsSecDomainGlobalV4ForUMC
+ * @param addDnsSecDomainGlobalV4ForUMC12
+ */
+ public void startaddDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC addDnsSecDomainGlobalV4ForUMC12,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSecDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSecDomainGlobalV4ForUMC12,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse.class);
+ callback.receiveResultaddDnsSecDomainGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDnsSecDomainGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[6].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[6].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllCompleteAnomalyDetectionStrategyFromUMC
+ * @param getAllCompleteAnomalyDetectionStrategyFromUMC14
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse getAllCompleteAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC getAllCompleteAnomalyDetectionStrategyFromUMC14)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllCompleteAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllCompleteAnomalyDetectionStrategyFromUMC14,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllCompleteAnomalyDetectionStrategyFromUMC
+ * @param getAllCompleteAnomalyDetectionStrategyFromUMC14
+ */
+ public void startgetAllCompleteAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC getAllCompleteAnomalyDetectionStrategyFromUMC14,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllCompleteAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllCompleteAnomalyDetectionStrategyFromUMC14,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse.class);
+ callback.receiveResultgetAllCompleteAnomalyDetectionStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllCompleteAnomalyDetectionStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[7].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[7].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllDetectDevices
+ * @param getAllDetectDevices16
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse getAllDetectDevices(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices getAllDetectDevices16)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllDetectDevicesRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllDetectDevices16,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllDetectDevices")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectDevices"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getAllDetectDevices"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getAllDetectDevices"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getAllDetectDevices"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllDetectDevices
+ * @param getAllDetectDevices16
+ */
+ public void startgetAllDetectDevices(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices getAllDetectDevices16,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllDetectDevicesRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllDetectDevices16,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectDevices")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectDevices"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse.class);
+ callback.receiveResultgetAllDetectDevices((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllDetectDevices(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectDevices"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectDevices"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectDevices"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllDetectDevices(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectDevices(f);
+ }
+ } else {
+ callback.receiveErrorgetAllDetectDevices(f);
+ }
+ } else {
+ callback.receiveErrorgetAllDetectDevices(f);
+ }
+ } else {
+ callback.receiveErrorgetAllDetectDevices(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllDetectDevices(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[8].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[8].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startBlackHoleStrategyForUMC
+ * @param startBlackHoleStrategyForUMC18
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse startBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC startBlackHoleStrategyForUMC18)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startBlackHoleStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startBlackHoleStrategyForUMC18,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "startBlackHoleStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBlackHoleStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBlackHoleStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBlackHoleStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBlackHoleStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstartBlackHoleStrategyForUMC
+ * @param startBlackHoleStrategyForUMC18
+ */
+ public void startstartBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC startBlackHoleStrategyForUMC18,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startBlackHoleStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startBlackHoleStrategyForUMC18,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBlackHoleStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBlackHoleStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse.class);
+ callback.receiveResultstartBlackHoleStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstartBlackHoleStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBlackHoleStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBlackHoleStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBlackHoleStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstartBlackHoleStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartBlackHoleStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstartBlackHoleStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[9].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[9].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosHttpGetSipCusProV4FromUMC
+ * @param getDdosHttpGetSipCusProV4FromUMC20
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse getDdosHttpGetSipCusProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC getDdosHttpGetSipCusProV4FromUMC20)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetSipCusProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetSipCusProV4FromUMC20,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosHttpGetSipCusProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipCusProV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipCusProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipCusProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipCusProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosHttpGetSipCusProV4FromUMC
+ * @param getDdosHttpGetSipCusProV4FromUMC20
+ */
+ public void startgetDdosHttpGetSipCusProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC getDdosHttpGetSipCusProV4FromUMC20,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetSipCusProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetSipCusProV4FromUMC20,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipCusProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipCusProV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse.class);
+ callback.receiveResultgetDdosHttpGetSipCusProV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipCusProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipCusProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipCusProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosHttpGetSipCusProV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[10].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[10].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosDnsRetryProtectFromUMC
+ * @param getDdosDnsRetryProtectFromUMC22
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse getDdosDnsRetryProtectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC getDdosDnsRetryProtectFromUMC22)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosDnsRetryProtectFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosDnsRetryProtectFromUMC22,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosDnsRetryProtectFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosDnsRetryProtectFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosDnsRetryProtectFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosDnsRetryProtectFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosDnsRetryProtectFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosDnsRetryProtectFromUMC
+ * @param getDdosDnsRetryProtectFromUMC22
+ */
+ public void startgetDdosDnsRetryProtectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC getDdosDnsRetryProtectFromUMC22,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosDnsRetryProtectFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosDnsRetryProtectFromUMC22,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosDnsRetryProtectFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosDnsRetryProtectFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse.class);
+ callback.receiveResultgetDdosDnsRetryProtectFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosDnsRetryProtectFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosDnsRetryProtectFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosDnsRetryProtectFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosDnsRetryProtectFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[11].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[11].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalTcpLengthFromUMC
+ * @param getDdosGlobalTcpLengthFromUMC24
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse getDdosGlobalTcpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC getDdosGlobalTcpLengthFromUMC24)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpLengthFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpLengthFromUMC24,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalTcpLengthFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpLengthFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpLengthFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpLengthFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpLengthFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalTcpLengthFromUMC
+ * @param getDdosGlobalTcpLengthFromUMC24
+ */
+ public void startgetDdosGlobalTcpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC getDdosGlobalTcpLengthFromUMC24,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpLengthFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpLengthFromUMC24,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpLengthFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpLengthFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalTcpLengthFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpLengthFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpLengthFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpLengthFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalTcpLengthFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[12].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[12].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosHttpGetSipGloProV4FromUMC
+ * @param getDdosHttpGetSipGloProV4FromUMC26
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse getDdosHttpGetSipGloProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC getDdosHttpGetSipGloProV4FromUMC26)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetSipGloProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetSipGloProV4FromUMC26,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosHttpGetSipGloProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipGloProV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipGloProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipGloProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipGloProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosHttpGetSipGloProV4FromUMC
+ * @param getDdosHttpGetSipGloProV4FromUMC26
+ */
+ public void startgetDdosHttpGetSipGloProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC getDdosHttpGetSipGloProV4FromUMC26,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetSipGloProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetSipGloProV4FromUMC26,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipGloProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipGloProV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse.class);
+ callback.receiveResultgetDdosHttpGetSipGloProV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipGloProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipGloProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetSipGloProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosHttpGetSipGloProV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[13].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[13].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllBlackAndWhiteListFromUMC
+ * @param getAllBlackAndWhiteListFromUMC28
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse getAllBlackAndWhiteListFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC getAllBlackAndWhiteListFromUMC28)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[14].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBlackAndWhiteListFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBlackAndWhiteListFromUMC28,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBlackAndWhiteListFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackAndWhiteListFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackAndWhiteListFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackAndWhiteListFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackAndWhiteListFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllBlackAndWhiteListFromUMC
+ * @param getAllBlackAndWhiteListFromUMC28
+ */
+ public void startgetAllBlackAndWhiteListFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC getAllBlackAndWhiteListFromUMC28,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[14].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBlackAndWhiteListFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBlackAndWhiteListFromUMC28,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackAndWhiteListFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackAndWhiteListFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse.class);
+ callback.receiveResultgetAllBlackAndWhiteListFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackAndWhiteListFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackAndWhiteListFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackAndWhiteListFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllBlackAndWhiteListFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[14].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[14].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalUdpPayloadFromUMC
+ * @param getDdosGlobalUdpPayloadFromUMC30
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse getDdosGlobalUdpPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC getDdosGlobalUdpPayloadFromUMC30)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalUdpPayloadFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalUdpPayloadFromUMC30,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalUdpPayloadFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpPayloadFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpPayloadFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpPayloadFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpPayloadFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalUdpPayloadFromUMC
+ * @param getDdosGlobalUdpPayloadFromUMC30
+ */
+ public void startgetDdosGlobalUdpPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC getDdosGlobalUdpPayloadFromUMC30,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalUdpPayloadFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalUdpPayloadFromUMC30,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpPayloadFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpPayloadFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalUdpPayloadFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpPayloadFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpPayloadFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpPayloadFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalUdpPayloadFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[15].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[15].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosDnsRetryProtectForUMC
+ * @param delDdosDnsRetryProtectForUMC32
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse delDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC delDdosDnsRetryProtectForUMC32)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[16].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosDnsRetryProtectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosDnsRetryProtectForUMC32,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosDnsRetryProtectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosDnsRetryProtectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosDnsRetryProtectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosDnsRetryProtectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosDnsRetryProtectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosDnsRetryProtectForUMC
+ * @param delDdosDnsRetryProtectForUMC32
+ */
+ public void startdelDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC delDdosDnsRetryProtectForUMC32,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[16].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosDnsRetryProtectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosDnsRetryProtectForUMC32,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosDnsRetryProtectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosDnsRetryProtectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse.class);
+ callback.receiveResultdelDdosDnsRetryProtectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosDnsRetryProtectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosDnsRetryProtectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosDnsRetryProtectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosDnsRetryProtectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[16].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[16].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllBypassManualTractionStrategyFromUMC
+ * @param getAllBypassManualTractionStrategyFromUMC34
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse getAllBypassManualTractionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC getAllBypassManualTractionStrategyFromUMC34)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[17].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBypassManualTractionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBypassManualTractionStrategyFromUMC34,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBypassManualTractionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBypassManualTractionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBypassManualTractionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllBypassManualTractionStrategyFromUMC
+ * @param getAllBypassManualTractionStrategyFromUMC34
+ */
+ public void startgetAllBypassManualTractionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC getAllBypassManualTractionStrategyFromUMC34,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[17].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBypassManualTractionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBypassManualTractionStrategyFromUMC34,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse.class);
+ callback.receiveResultgetAllBypassManualTractionStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBypassManualTractionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBypassManualTractionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBypassManualTractionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllBypassManualTractionStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[17].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[17].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#disableProtectionStrategyTemplateForUMC
+ * @param disableProtectionStrategyTemplateForUMC36
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse disableProtectionStrategyTemplateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC disableProtectionStrategyTemplateForUMC36)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[18].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/disableProtectionStrategyTemplateForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ disableProtectionStrategyTemplateForUMC36,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "disableProtectionStrategyTemplateForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "disableProtectionStrategyTemplateForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "disableProtectionStrategyTemplateForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdisableProtectionStrategyTemplateForUMC
+ * @param disableProtectionStrategyTemplateForUMC36
+ */
+ public void startdisableProtectionStrategyTemplateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC disableProtectionStrategyTemplateForUMC36,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[18].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/disableProtectionStrategyTemplateForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ disableProtectionStrategyTemplateForUMC36,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse.class);
+ callback.receiveResultdisableProtectionStrategyTemplateForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "disableProtectionStrategyTemplateForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "disableProtectionStrategyTemplateForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "disableProtectionStrategyTemplateForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ }
+ } else {
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ }
+ } else {
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(f);
+ }
+ } else {
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordisableProtectionStrategyTemplateForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[18].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[18].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delFingerprintIcmpForUMC
+ * @param delFingerprintIcmpForUMC38
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse delFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC delFingerprintIcmpForUMC38)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[19].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintIcmpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintIcmpForUMC38,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delFingerprintIcmpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintIcmpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delFingerprintIcmpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintIcmpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintIcmpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelFingerprintIcmpForUMC
+ * @param delFingerprintIcmpForUMC38
+ */
+ public void startdelFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC delFingerprintIcmpForUMC38,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[19].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintIcmpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintIcmpForUMC38,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintIcmpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintIcmpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse.class);
+ callback.receiveResultdelFingerprintIcmpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelFingerprintIcmpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintIcmpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintIcmpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintIcmpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelFingerprintIcmpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintIcmpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelFingerprintIcmpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[19].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[19].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDnsDomainGlobalV4ForUMC
+ * @param modDnsDomainGlobalV4ForUMC40
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse modDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC modDnsDomainGlobalV4ForUMC40)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[20].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsDomainGlobalV4ForUMC40,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDnsDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDnsDomainGlobalV4ForUMC
+ * @param modDnsDomainGlobalV4ForUMC40
+ */
+ public void startmodDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC modDnsDomainGlobalV4ForUMC40,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[20].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsDomainGlobalV4ForUMC40,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse.class);
+ callback.receiveResultmodDnsDomainGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDnsDomainGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[20].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[20].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startAbnormalTaskWithSpecificDeviceForUMC
+ * @param startAbnormalTaskWithSpecificDeviceForUMC42
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse startAbnormalTaskWithSpecificDeviceForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC startAbnormalTaskWithSpecificDeviceForUMC42)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[21].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startAbnormalTaskWithSpecificDeviceForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startAbnormalTaskWithSpecificDeviceForUMC42,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "startAbnormalTaskWithSpecificDeviceForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskWithSpecificDeviceForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstartAbnormalTaskWithSpecificDeviceForUMC
+ * @param startAbnormalTaskWithSpecificDeviceForUMC42
+ */
+ public void startstartAbnormalTaskWithSpecificDeviceForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC startAbnormalTaskWithSpecificDeviceForUMC42,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[21].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startAbnormalTaskWithSpecificDeviceForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startAbnormalTaskWithSpecificDeviceForUMC42,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskWithSpecificDeviceForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse.class);
+ callback.receiveResultstartAbnormalTaskWithSpecificDeviceForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskWithSpecificDeviceForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskWithSpecificDeviceForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstartAbnormalTaskWithSpecificDeviceForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[21].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[21].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosCCuserGroupV4FromUMC
+ * @param getDdosCCuserGroupV4FromUMC44
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse getDdosCCuserGroupV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC getDdosCCuserGroupV4FromUMC44)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[22].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosCCuserGroupV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosCCuserGroupV4FromUMC44,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosCCuserGroupV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosCCuserGroupV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosCCuserGroupV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosCCuserGroupV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosCCuserGroupV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosCCuserGroupV4FromUMC
+ * @param getDdosCCuserGroupV4FromUMC44
+ */
+ public void startgetDdosCCuserGroupV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC getDdosCCuserGroupV4FromUMC44,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[22].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosCCuserGroupV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosCCuserGroupV4FromUMC44,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosCCuserGroupV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosCCuserGroupV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse.class);
+ callback.receiveResultgetDdosCCuserGroupV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosCCuserGroupV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosCCuserGroupV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosCCuserGroupV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosCCuserGroupV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[22].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[22].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getFingerprintIcmpFromUMC
+ * @param getFingerprintIcmpFromUMC46
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse getFingerprintIcmpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC getFingerprintIcmpFromUMC46)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[23].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintIcmpFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintIcmpFromUMC46,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getFingerprintIcmpFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintIcmpFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getFingerprintIcmpFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintIcmpFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintIcmpFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetFingerprintIcmpFromUMC
+ * @param getFingerprintIcmpFromUMC46
+ */
+ public void startgetFingerprintIcmpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC getFingerprintIcmpFromUMC46,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[23].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintIcmpFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintIcmpFromUMC46,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintIcmpFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintIcmpFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse.class);
+ callback.receiveResultgetFingerprintIcmpFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetFingerprintIcmpFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintIcmpFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintIcmpFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintIcmpFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetFingerprintIcmpFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintIcmpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintIcmpFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetFingerprintIcmpFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[23].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[23].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delFingerprintTcpForUMC
+ * @param delFingerprintTcpForUMC48
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse delFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC delFingerprintTcpForUMC48)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[24].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintTcpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintTcpForUMC48,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delFingerprintTcpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintTcpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delFingerprintTcpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintTcpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintTcpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelFingerprintTcpForUMC
+ * @param delFingerprintTcpForUMC48
+ */
+ public void startdelFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC delFingerprintTcpForUMC48,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[24].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintTcpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintTcpForUMC48,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintTcpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintTcpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse.class);
+ callback.receiveResultdelFingerprintTcpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelFingerprintTcpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintTcpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintTcpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintTcpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelFingerprintTcpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintTcpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelFingerprintTcpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[24].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[24].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDnsSecDomainGlobalV4ForUMC
+ * @param delDnsSecDomainGlobalV4ForUMC50
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse delDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC delDnsSecDomainGlobalV4ForUMC50)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[25].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSecDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSecDomainGlobalV4ForUMC50,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDnsSecDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDnsSecDomainGlobalV4ForUMC
+ * @param delDnsSecDomainGlobalV4ForUMC50
+ */
+ public void startdelDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC delDnsSecDomainGlobalV4ForUMC50,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[25].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSecDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSecDomainGlobalV4ForUMC50,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse.class);
+ callback.receiveResultdelDnsSecDomainGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDnsSecDomainGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[25].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[25].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosHttpGetUriCusProV4ForUMC
+ * @param delDdosHttpGetUriCusProV4ForUMC52
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse delDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC delDdosHttpGetUriCusProV4ForUMC52)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[26].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetUriCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetUriCusProV4ForUMC52,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosHttpGetUriCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriCusProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosHttpGetUriCusProV4ForUMC
+ * @param delDdosHttpGetUriCusProV4ForUMC52
+ */
+ public void startdelDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC delDdosHttpGetUriCusProV4ForUMC52,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[26].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetUriCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetUriCusProV4ForUMC52,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriCusProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse.class);
+ callback.receiveResultdelDdosHttpGetUriCusProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosHttpGetUriCusProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[26].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[26].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addFingerprintTcpForUMC
+ * @param addFingerprintTcpForUMC54
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse addFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC addFingerprintTcpForUMC54)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[27].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintTcpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintTcpForUMC54,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addFingerprintTcpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintTcpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addFingerprintTcpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintTcpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintTcpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddFingerprintTcpForUMC
+ * @param addFingerprintTcpForUMC54
+ */
+ public void startaddFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC addFingerprintTcpForUMC54,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[27].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintTcpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintTcpForUMC54,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintTcpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintTcpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse.class);
+ callback.receiveResultaddFingerprintTcpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddFingerprintTcpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintTcpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintTcpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintTcpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddFingerprintTcpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintTcpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddFingerprintTcpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[27].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[27].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllProtectionStrategyTemplateFromUMC
+ * @param getAllProtectionStrategyTemplateFromUMC56
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse getAllProtectionStrategyTemplateFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC getAllProtectionStrategyTemplateFromUMC56)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[28].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectionStrategyTemplateFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectionStrategyTemplateFromUMC56,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllProtectionStrategyTemplateFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionStrategyTemplateFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionStrategyTemplateFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionStrategyTemplateFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionStrategyTemplateFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllProtectionStrategyTemplateFromUMC
+ * @param getAllProtectionStrategyTemplateFromUMC56
+ */
+ public void startgetAllProtectionStrategyTemplateFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC getAllProtectionStrategyTemplateFromUMC56,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[28].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectionStrategyTemplateFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectionStrategyTemplateFromUMC56,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionStrategyTemplateFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionStrategyTemplateFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse.class);
+ callback.receiveResultgetAllProtectionStrategyTemplateFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionStrategyTemplateFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionStrategyTemplateFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionStrategyTemplateFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllProtectionStrategyTemplateFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[28].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[28].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addFingerprintIcmpForUMC
+ * @param addFingerprintIcmpForUMC58
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse addFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC addFingerprintIcmpForUMC58)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[29].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintIcmpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintIcmpForUMC58,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addFingerprintIcmpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintIcmpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addFingerprintIcmpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintIcmpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintIcmpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddFingerprintIcmpForUMC
+ * @param addFingerprintIcmpForUMC58
+ */
+ public void startaddFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC addFingerprintIcmpForUMC58,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[29].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintIcmpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintIcmpForUMC58,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintIcmpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintIcmpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse.class);
+ callback.receiveResultaddFingerprintIcmpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddFingerprintIcmpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintIcmpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintIcmpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintIcmpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddFingerprintIcmpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintIcmpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddFingerprintIcmpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[29].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[29].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modifyDetectionObjectForUMC
+ * @param modifyDetectionObjectForUMC60
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse modifyDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC modifyDetectionObjectForUMC60)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[30].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modifyDetectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modifyDetectionObjectForUMC60,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modifyDetectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyDetectionObjectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyDetectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyDetectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyDetectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodifyDetectionObjectForUMC
+ * @param modifyDetectionObjectForUMC60
+ */
+ public void startmodifyDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC modifyDetectionObjectForUMC60,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[30].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modifyDetectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modifyDetectionObjectForUMC60,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyDetectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyDetectionObjectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse.class);
+ callback.receiveResultmodifyDetectionObjectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodifyDetectionObjectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyDetectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyDetectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyDetectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodifyDetectionObjectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodifyDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodifyDetectionObjectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodifyDetectionObjectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[30].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[30].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#deleteProtectionObjectIPRangeForUMC
+ * @param deleteProtectionObjectIPRangeForUMC62
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse deleteProtectionObjectIPRangeForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC deleteProtectionObjectIPRangeForUMC62)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[31].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteProtectionObjectIPRangeForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteProtectionObjectIPRangeForUMC62,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectIPRangeForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectIPRangeForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectIPRangeForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdeleteProtectionObjectIPRangeForUMC
+ * @param deleteProtectionObjectIPRangeForUMC62
+ */
+ public void startdeleteProtectionObjectIPRangeForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC deleteProtectionObjectIPRangeForUMC62,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[31].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteProtectionObjectIPRangeForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteProtectionObjectIPRangeForUMC62,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse.class);
+ callback.receiveResultdeleteProtectionObjectIPRangeForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectIPRangeForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectIPRangeForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectIPRangeForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordeleteProtectionObjectIPRangeForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[31].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[31].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modBlackHoleAutoStrategyForUMC
+ * @param modBlackHoleAutoStrategyForUMC64
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse modBlackHoleAutoStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC modBlackHoleAutoStrategyForUMC64)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[32].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBlackHoleAutoStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBlackHoleAutoStrategyForUMC64,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modBlackHoleAutoStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleAutoStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleAutoStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleAutoStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleAutoStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodBlackHoleAutoStrategyForUMC
+ * @param modBlackHoleAutoStrategyForUMC64
+ */
+ public void startmodBlackHoleAutoStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC modBlackHoleAutoStrategyForUMC64,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[32].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBlackHoleAutoStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBlackHoleAutoStrategyForUMC64,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleAutoStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleAutoStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse.class);
+ callback.receiveResultmodBlackHoleAutoStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleAutoStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleAutoStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleAutoStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodBlackHoleAutoStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[32].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[32].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modACProtectionForUMC
+ * @param modACProtectionForUMC66
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse modACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC modACProtectionForUMC66)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[33].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modACProtectionForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modACProtectionForUMC66,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "modACProtectionForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modACProtectionForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modACProtectionForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modACProtectionForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modACProtectionForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodACProtectionForUMC
+ * @param modACProtectionForUMC66
+ */
+ public void startmodACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC modACProtectionForUMC66,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[33].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modACProtectionForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modACProtectionForUMC66,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modACProtectionForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modACProtectionForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse.class);
+ callback.receiveResultmodACProtectionForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodACProtectionForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modACProtectionForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modACProtectionForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modACProtectionForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodACProtectionForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodACProtectionForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodACProtectionForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[33].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[33].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDdosHttpGetUriCusProV4ForUMC
+ * @param modDdosHttpGetUriCusProV4ForUMC68
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse modDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC modDdosHttpGetUriCusProV4ForUMC68)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[34].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetUriCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetUriCusProV4ForUMC68,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDdosHttpGetUriCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriCusProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDdosHttpGetUriCusProV4ForUMC
+ * @param modDdosHttpGetUriCusProV4ForUMC68
+ */
+ public void startmodDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC modDdosHttpGetUriCusProV4ForUMC68,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[34].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetUriCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetUriCusProV4ForUMC68,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriCusProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse.class);
+ callback.receiveResultmodDdosHttpGetUriCusProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDdosHttpGetUriCusProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[34].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[34].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDdosCCuserGroupV4ForUMC
+ * @param modDdosCCuserGroupV4ForUMC70
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse modDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC modDdosCCuserGroupV4ForUMC70)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[35].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosCCuserGroupV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosCCuserGroupV4ForUMC70,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDdosCCuserGroupV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosCCuserGroupV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosCCuserGroupV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosCCuserGroupV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosCCuserGroupV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDdosCCuserGroupV4ForUMC
+ * @param modDdosCCuserGroupV4ForUMC70
+ */
+ public void startmodDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC modDdosCCuserGroupV4ForUMC70,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[35].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosCCuserGroupV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosCCuserGroupV4ForUMC70,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosCCuserGroupV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosCCuserGroupV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse.class);
+ callback.receiveResultmodDdosCCuserGroupV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosCCuserGroupV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosCCuserGroupV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosCCuserGroupV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDdosCCuserGroupV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[35].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[35].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalIcmpFragFromUMC
+ * @param getDdosGlobalIcmpFragFromUMC72
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse getDdosGlobalIcmpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC getDdosGlobalIcmpFragFromUMC72)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[36].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalIcmpFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalIcmpFragFromUMC72,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalIcmpFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpFragFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalIcmpFragFromUMC
+ * @param getDdosGlobalIcmpFragFromUMC72
+ */
+ public void startgetDdosGlobalIcmpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC getDdosGlobalIcmpFragFromUMC72,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[36].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalIcmpFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalIcmpFragFromUMC72,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpFragFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalIcmpFragFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalIcmpFragFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[36].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[36].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDnsDomainCustomV4ForUMC
+ * @param modDnsDomainCustomV4ForUMC74
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse modDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC modDnsDomainCustomV4ForUMC74)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[37].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsDomainCustomV4ForUMC74,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDnsDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDnsDomainCustomV4ForUMC
+ * @param modDnsDomainCustomV4ForUMC74
+ */
+ public void startmodDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC modDnsDomainCustomV4ForUMC74,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[37].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsDomainCustomV4ForUMC74,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse.class);
+ callback.receiveResultmodDnsDomainCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDnsDomainCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[37].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[37].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modBlackHoleManualStrategyForUMC
+ * @param modBlackHoleManualStrategyForUMC76
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse modBlackHoleManualStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC modBlackHoleManualStrategyForUMC76)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[38].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBlackHoleManualStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBlackHoleManualStrategyForUMC76,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modBlackHoleManualStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleManualStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleManualStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleManualStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleManualStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodBlackHoleManualStrategyForUMC
+ * @param modBlackHoleManualStrategyForUMC76
+ */
+ public void startmodBlackHoleManualStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC modBlackHoleManualStrategyForUMC76,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[38].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBlackHoleManualStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBlackHoleManualStrategyForUMC76,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleManualStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleManualStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse.class);
+ callback.receiveResultmodBlackHoleManualStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleManualStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleManualStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackHoleManualStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodBlackHoleManualStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[38].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[38].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllBlackHoleManualStrategyFromUMC
+ * @param getAllBlackHoleManualStrategyFromUMC78
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse getAllBlackHoleManualStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC getAllBlackHoleManualStrategyFromUMC78)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[39].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBlackHoleManualStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBlackHoleManualStrategyFromUMC78,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleManualStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleManualStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleManualStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllBlackHoleManualStrategyFromUMC
+ * @param getAllBlackHoleManualStrategyFromUMC78
+ */
+ public void startgetAllBlackHoleManualStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC getAllBlackHoleManualStrategyFromUMC78,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[39].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBlackHoleManualStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBlackHoleManualStrategyFromUMC78,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse.class);
+ callback.receiveResultgetAllBlackHoleManualStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleManualStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleManualStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleManualStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllBlackHoleManualStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[39].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[39].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDnsSipGlobalV4ForUMC
+ * @param modDnsSipGlobalV4ForUMC80
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse modDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC modDnsSipGlobalV4ForUMC80)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[40].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSipGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSipGlobalV4ForUMC80,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDnsSipGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modDnsSipGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDnsSipGlobalV4ForUMC
+ * @param modDnsSipGlobalV4ForUMC80
+ */
+ public void startmodDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC modDnsSipGlobalV4ForUMC80,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[40].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSipGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSipGlobalV4ForUMC80,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse.class);
+ callback.receiveResultmodDnsSipGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSipGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDnsSipGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[40].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[40].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addOneKeyDetection
+ * @param addOneKeyDetection82
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse addOneKeyDetection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection addOneKeyDetection82)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[41].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addOneKeyDetectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addOneKeyDetection82,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addOneKeyDetection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyDetection"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addOneKeyDetection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addOneKeyDetection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addOneKeyDetection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddOneKeyDetection
+ * @param addOneKeyDetection82
+ */
+ public void startaddOneKeyDetection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection addOneKeyDetection82,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[41].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addOneKeyDetectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addOneKeyDetection82,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyDetection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyDetection"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse.class);
+ callback.receiveResultaddOneKeyDetection((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddOneKeyDetection(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addOneKeyDetection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addOneKeyDetection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addOneKeyDetection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddOneKeyDetection(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyDetection(f);
+ }
+ } else {
+ callback.receiveErroraddOneKeyDetection(f);
+ }
+ } else {
+ callback.receiveErroraddOneKeyDetection(f);
+ }
+ } else {
+ callback.receiveErroraddOneKeyDetection(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddOneKeyDetection(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[41].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[41].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosHttpGetUriGloProV4ForUMC
+ * @param addDdosHttpGetUriGloProV4ForUMC84
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse addDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC addDdosHttpGetUriGloProV4ForUMC84)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[42].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetUriGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetUriGloProV4ForUMC84,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosHttpGetUriGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriGloProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosHttpGetUriGloProV4ForUMC
+ * @param addDdosHttpGetUriGloProV4ForUMC84
+ */
+ public void startaddDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC addDdosHttpGetUriGloProV4ForUMC84,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[42].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetUriGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetUriGloProV4ForUMC84,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriGloProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse.class);
+ callback.receiveResultaddDdosHttpGetUriGloProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosHttpGetUriGloProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[42].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[42].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addBlackHoleManualStrategyForUMC
+ * @param addBlackHoleManualStrategyForUMC86
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse addBlackHoleManualStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC addBlackHoleManualStrategyForUMC86)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[43].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBlackHoleManualStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBlackHoleManualStrategyForUMC86,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addBlackHoleManualStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleManualStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleManualStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleManualStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleManualStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddBlackHoleManualStrategyForUMC
+ * @param addBlackHoleManualStrategyForUMC86
+ */
+ public void startaddBlackHoleManualStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC addBlackHoleManualStrategyForUMC86,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[43].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBlackHoleManualStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBlackHoleManualStrategyForUMC86,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleManualStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleManualStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse.class);
+ callback.receiveResultaddBlackHoleManualStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleManualStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleManualStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleManualStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddBlackHoleManualStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[43].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[43].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalUdpLengthForUMC
+ * @param setDdosGlobalUdpLengthForUMC88
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse setDdosGlobalUdpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC setDdosGlobalUdpLengthForUMC88)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[44].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalUdpLengthForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalUdpLengthForUMC88,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalUdpLengthForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpLengthForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpLengthForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpLengthForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpLengthForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalUdpLengthForUMC
+ * @param setDdosGlobalUdpLengthForUMC88
+ */
+ public void startsetDdosGlobalUdpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC setDdosGlobalUdpLengthForUMC88,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[44].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalUdpLengthForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalUdpLengthForUMC88,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpLengthForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpLengthForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalUdpLengthForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpLengthForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpLengthForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpLengthForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalUdpLengthForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[44].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[44].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addOneKeyRestore
+ * @param addOneKeyRestore90
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse addOneKeyRestore(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore addOneKeyRestore90)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[45].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addOneKeyRestoreRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addOneKeyRestore90,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "addOneKeyRestore")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyRestore"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addOneKeyRestore"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addOneKeyRestore"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addOneKeyRestore"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddOneKeyRestore
+ * @param addOneKeyRestore90
+ */
+ public void startaddOneKeyRestore(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore addOneKeyRestore90,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[45].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addOneKeyRestoreRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addOneKeyRestore90,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyRestore")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyRestore"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse.class);
+ callback.receiveResultaddOneKeyRestore((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddOneKeyRestore(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addOneKeyRestore"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addOneKeyRestore"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addOneKeyRestore"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddOneKeyRestore(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddOneKeyRestore(f);
+ }
+ } else {
+ callback.receiveErroraddOneKeyRestore(f);
+ }
+ } else {
+ callback.receiveErroraddOneKeyRestore(f);
+ }
+ } else {
+ callback.receiveErroraddOneKeyRestore(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddOneKeyRestore(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[45].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[45].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#geDnsDomainCustomV4TFromUMC
+ * @param geDnsDomainCustomV4TFromUMC92
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse geDnsDomainCustomV4TFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC geDnsDomainCustomV4TFromUMC92)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[46].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/geDnsDomainCustomV4tFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ geDnsDomainCustomV4TFromUMC92,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "geDnsDomainCustomV4TFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "geDnsDomainCustomV4tFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "geDnsDomainCustomV4tFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "geDnsDomainCustomV4tFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "geDnsDomainCustomV4tFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgeDnsDomainCustomV4TFromUMC
+ * @param geDnsDomainCustomV4TFromUMC92
+ */
+ public void startgeDnsDomainCustomV4TFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC geDnsDomainCustomV4TFromUMC92,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[46].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/geDnsDomainCustomV4tFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ geDnsDomainCustomV4TFromUMC92,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "geDnsDomainCustomV4TFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "geDnsDomainCustomV4tFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse.class);
+ callback.receiveResultgeDnsDomainCustomV4TFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "geDnsDomainCustomV4tFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "geDnsDomainCustomV4tFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "geDnsDomainCustomV4tFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgeDnsDomainCustomV4TFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[46].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[46].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addCompleteAnomalyDetectionStrategyForUMC
+ * @param addCompleteAnomalyDetectionStrategyForUMC94
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse addCompleteAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC addCompleteAnomalyDetectionStrategyForUMC94)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[47].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addCompleteAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addCompleteAnomalyDetectionStrategyForUMC94,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addCompleteAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddCompleteAnomalyDetectionStrategyForUMC
+ * @param addCompleteAnomalyDetectionStrategyForUMC94
+ */
+ public void startaddCompleteAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC addCompleteAnomalyDetectionStrategyForUMC94,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[47].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addCompleteAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addCompleteAnomalyDetectionStrategyForUMC94,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse.class);
+ callback.receiveResultaddCompleteAnomalyDetectionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addCompleteAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddCompleteAnomalyDetectionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[47].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[47].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDnsSipCustomV4ForUMC
+ * @param delDnsSipCustomV4ForUMC96
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse delDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC delDnsSipCustomV4ForUMC96)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[48].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSipCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSipCustomV4ForUMC96,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDnsSipCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delDnsSipCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDnsSipCustomV4ForUMC
+ * @param delDnsSipCustomV4ForUMC96
+ */
+ public void startdelDnsSipCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC delDnsSipCustomV4ForUMC96,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[48].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSipCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSipCustomV4ForUMC96,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse.class);
+ callback.receiveResultdelDnsSipCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDnsSipCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDnsSipCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSipCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSipCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDnsSipCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[48].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[48].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modFingerprintUdpForUMC
+ * @param modFingerprintUdpForUMC98
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse modFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC modFingerprintUdpForUMC98)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[49].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintUdpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintUdpForUMC98,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modFingerprintUdpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintUdpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modFingerprintUdpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintUdpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintUdpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodFingerprintUdpForUMC
+ * @param modFingerprintUdpForUMC98
+ */
+ public void startmodFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC modFingerprintUdpForUMC98,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[49].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintUdpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintUdpForUMC98,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintUdpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintUdpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse.class);
+ callback.receiveResultmodFingerprintUdpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodFingerprintUdpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintUdpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintUdpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintUdpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodFingerprintUdpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintUdpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodFingerprintUdpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[49].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[49].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalTcpFragForUMC
+ * @param setDdosGlobalTcpFragForUMC100
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse setDdosGlobalTcpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC setDdosGlobalTcpFragForUMC100)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[50].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpFragForUMC100,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalTcpFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFragForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalTcpFragForUMC
+ * @param setDdosGlobalTcpFragForUMC100
+ */
+ public void startsetDdosGlobalTcpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC setDdosGlobalTcpFragForUMC100,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[50].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpFragForUMC100,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFragForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalTcpFragForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalTcpFragForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[50].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[50].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalTcpStateFromUMC
+ * @param getDdosGlobalTcpStateFromUMC102
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse getDdosGlobalTcpStateFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC getDdosGlobalTcpStateFromUMC102)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[51].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpStateFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpStateFromUMC102,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalTcpStateFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpStateFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpStateFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpStateFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpStateFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalTcpStateFromUMC
+ * @param getDdosGlobalTcpStateFromUMC102
+ */
+ public void startgetDdosGlobalTcpStateFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC getDdosGlobalTcpStateFromUMC102,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[51].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpStateFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpStateFromUMC102,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpStateFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpStateFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalTcpStateFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpStateFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpStateFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpStateFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalTcpStateFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[51].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[51].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modFingerprintTcpForUMC
+ * @param modFingerprintTcpForUMC104
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse modFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC modFingerprintTcpForUMC104)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[52].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintTcpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintTcpForUMC104,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modFingerprintTcpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintTcpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modFingerprintTcpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintTcpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintTcpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodFingerprintTcpForUMC
+ * @param modFingerprintTcpForUMC104
+ */
+ public void startmodFingerprintTcpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC modFingerprintTcpForUMC104,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[52].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintTcpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintTcpForUMC104,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintTcpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintTcpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse.class);
+ callback.receiveResultmodFingerprintTcpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodFingerprintTcpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintTcpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintTcpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintTcpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodFingerprintTcpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintTcpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintTcpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodFingerprintTcpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[52].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[52].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDnsDomainGlobalV4ForUMC
+ * @param addDnsDomainGlobalV4ForUMC106
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse addDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC addDnsDomainGlobalV4ForUMC106)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[53].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsDomainGlobalV4ForUMC106,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDnsDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDnsDomainGlobalV4ForUMC
+ * @param addDnsDomainGlobalV4ForUMC106
+ */
+ public void startaddDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC addDnsDomainGlobalV4ForUMC106,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[53].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsDomainGlobalV4ForUMC106,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse.class);
+ callback.receiveResultaddDnsDomainGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDnsDomainGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[53].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[53].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delBlackAndWhiteListProtection
+ * @param delBlackAndWhiteListProtection108
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse delBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection delBlackAndWhiteListProtection108)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[54].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delBlackAndWhiteListProtectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delBlackAndWhiteListProtection108,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delBlackAndWhiteListProtection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackAndWhiteListProtection"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackAndWhiteListProtection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackAndWhiteListProtection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackAndWhiteListProtection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelBlackAndWhiteListProtection
+ * @param delBlackAndWhiteListProtection108
+ */
+ public void startdelBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection delBlackAndWhiteListProtection108,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[54].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delBlackAndWhiteListProtectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delBlackAndWhiteListProtection108,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackAndWhiteListProtection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackAndWhiteListProtection"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse.class);
+ callback.receiveResultdelBlackAndWhiteListProtection((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelBlackAndWhiteListProtection(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackAndWhiteListProtection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackAndWhiteListProtection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackAndWhiteListProtection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelBlackAndWhiteListProtection(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErrordelBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErrordelBlackAndWhiteListProtection(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelBlackAndWhiteListProtection(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[54].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[54].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalIcmpFragForUMC
+ * @param setDdosGlobalIcmpFragForUMC110
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse setDdosGlobalIcmpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC setDdosGlobalIcmpFragForUMC110)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[55].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalIcmpFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalIcmpFragForUMC110,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalIcmpFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpFragForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalIcmpFragForUMC
+ * @param setDdosGlobalIcmpFragForUMC110
+ */
+ public void startsetDdosGlobalIcmpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC setDdosGlobalIcmpFragForUMC110,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[55].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalIcmpFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalIcmpFragForUMC110,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpFragForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalIcmpFragForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalIcmpFragForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[55].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[55].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalTcpFlagFromUMC
+ * @param getDdosGlobalTcpFlagFromUMC112
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse getDdosGlobalTcpFlagFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC getDdosGlobalTcpFlagFromUMC112)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[56].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpFlagFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpFlagFromUMC112,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalTcpFlagFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFlagFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFlagFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFlagFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFlagFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalTcpFlagFromUMC
+ * @param getDdosGlobalTcpFlagFromUMC112
+ */
+ public void startgetDdosGlobalTcpFlagFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC getDdosGlobalTcpFlagFromUMC112,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[56].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpFlagFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpFlagFromUMC112,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFlagFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFlagFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalTcpFlagFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFlagFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFlagFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFlagFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalTcpFlagFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[56].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[56].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startBypassManualTractionStrategyForUMC
+ * @param startBypassManualTractionStrategyForUMC114
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse startBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC startBypassManualTractionStrategyForUMC114)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[57].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startBypassManualTractionStrategyForUMC114,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "startBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBypassManualTractionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstartBypassManualTractionStrategyForUMC
+ * @param startBypassManualTractionStrategyForUMC114
+ */
+ public void startstartBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC startBypassManualTractionStrategyForUMC114,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[57].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startBypassManualTractionStrategyForUMC114,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBypassManualTractionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse.class);
+ callback.receiveResultstartBypassManualTractionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstartBypassManualTractionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[57].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[57].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addFingerprintUdpForUMC
+ * @param addFingerprintUdpForUMC116
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse addFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC addFingerprintUdpForUMC116)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[58].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintUdpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintUdpForUMC116,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addFingerprintUdpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintUdpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addFingerprintUdpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintUdpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintUdpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddFingerprintUdpForUMC
+ * @param addFingerprintUdpForUMC116
+ */
+ public void startaddFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC addFingerprintUdpForUMC116,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[58].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintUdpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintUdpForUMC116,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintUdpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintUdpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse.class);
+ callback.receiveResultaddFingerprintUdpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddFingerprintUdpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintUdpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintUdpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintUdpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddFingerprintUdpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintUdpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddFingerprintUdpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[58].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[58].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosDnsRetryProtectForUMC
+ * @param addDdosDnsRetryProtectForUMC118
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse addDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC addDdosDnsRetryProtectForUMC118)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[59].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosDnsRetryProtectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosDnsRetryProtectForUMC118,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosDnsRetryProtectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosDnsRetryProtectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosDnsRetryProtectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosDnsRetryProtectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosDnsRetryProtectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosDnsRetryProtectForUMC
+ * @param addDdosDnsRetryProtectForUMC118
+ */
+ public void startaddDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC addDdosDnsRetryProtectForUMC118,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[59].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosDnsRetryProtectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosDnsRetryProtectForUMC118,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosDnsRetryProtectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosDnsRetryProtectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse.class);
+ callback.receiveResultaddDdosDnsRetryProtectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosDnsRetryProtectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosDnsRetryProtectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosDnsRetryProtectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosDnsRetryProtectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[59].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[59].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllBlackHoleAutoStrategyFromUMC
+ * @param getAllBlackHoleAutoStrategyFromUMC120
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse getAllBlackHoleAutoStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC getAllBlackHoleAutoStrategyFromUMC120)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[60].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBlackHoleAutoStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBlackHoleAutoStrategyFromUMC120,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleAutoStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleAutoStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleAutoStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllBlackHoleAutoStrategyFromUMC
+ * @param getAllBlackHoleAutoStrategyFromUMC120
+ */
+ public void startgetAllBlackHoleAutoStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC getAllBlackHoleAutoStrategyFromUMC120,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[60].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllBlackHoleAutoStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllBlackHoleAutoStrategyFromUMC120,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse.class);
+ callback.receiveResultgetAllBlackHoleAutoStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleAutoStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleAutoStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllBlackHoleAutoStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllBlackHoleAutoStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[60].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[60].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDnsDomainGlobalV4FromUMC
+ * @param getDnsDomainGlobalV4FromUMC122
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse getDnsDomainGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC getDnsDomainGlobalV4FromUMC122)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[61].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsDomainGlobalV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsDomainGlobalV4FromUMC122,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDnsDomainGlobalV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsDomainGlobalV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsDomainGlobalV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsDomainGlobalV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsDomainGlobalV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDnsDomainGlobalV4FromUMC
+ * @param getDnsDomainGlobalV4FromUMC122
+ */
+ public void startgetDnsDomainGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC getDnsDomainGlobalV4FromUMC122,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[61].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsDomainGlobalV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsDomainGlobalV4FromUMC122,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsDomainGlobalV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsDomainGlobalV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse.class);
+ callback.receiveResultgetDnsDomainGlobalV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsDomainGlobalV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsDomainGlobalV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsDomainGlobalV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDnsDomainGlobalV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[61].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[61].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosHttpGetSipGloProV4ForUMC
+ * @param delDdosHttpGetSipGloProV4ForUMC124
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse delDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC delDdosHttpGetSipGloProV4ForUMC124)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[62].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetSipGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetSipGloProV4ForUMC124,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosHttpGetSipGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipGloProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosHttpGetSipGloProV4ForUMC
+ * @param delDdosHttpGetSipGloProV4ForUMC124
+ */
+ public void startdelDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC delDdosHttpGetSipGloProV4ForUMC124,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[62].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetSipGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetSipGloProV4ForUMC124,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipGloProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse.class);
+ callback.receiveResultdelDdosHttpGetSipGloProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosHttpGetSipGloProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[62].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[62].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAnomalyDetectionStrategyFromUMC
+ * @param getAnomalyDetectionStrategyFromUMC126
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse getAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC getAnomalyDetectionStrategyFromUMC126)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[63].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAnomalyDetectionStrategyFromUMC126,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAnomalyDetectionStrategyFromUMC
+ * @param getAnomalyDetectionStrategyFromUMC126
+ */
+ public void startgetAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC getAnomalyDetectionStrategyFromUMC126,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[63].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAnomalyDetectionStrategyFromUMC126,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse.class);
+ callback.receiveResultgetAnomalyDetectionStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAnomalyDetectionStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[63].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[63].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosCCuserGroupV4ForUMC
+ * @param addDdosCCuserGroupV4ForUMC128
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse addDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC addDdosCCuserGroupV4ForUMC128)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[64].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosCCuserGroupV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosCCuserGroupV4ForUMC128,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosCCuserGroupV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosCCuserGroupV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosCCuserGroupV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosCCuserGroupV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosCCuserGroupV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosCCuserGroupV4ForUMC
+ * @param addDdosCCuserGroupV4ForUMC128
+ */
+ public void startaddDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC addDdosCCuserGroupV4ForUMC128,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[64].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosCCuserGroupV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosCCuserGroupV4ForUMC128,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosCCuserGroupV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosCCuserGroupV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse.class);
+ callback.receiveResultaddDdosCCuserGroupV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosCCuserGroupV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosCCuserGroupV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosCCuserGroupV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosCCuserGroupV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[64].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[64].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDnsSecDomainGlobalV4ForUMC
+ * @param modDnsSecDomainGlobalV4ForUMC130
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse modDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC modDnsSecDomainGlobalV4ForUMC130)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[65].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSecDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSecDomainGlobalV4ForUMC130,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDnsSecDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDnsSecDomainGlobalV4ForUMC
+ * @param modDnsSecDomainGlobalV4ForUMC130
+ */
+ public void startmodDnsSecDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC modDnsSecDomainGlobalV4ForUMC130,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[65].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSecDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSecDomainGlobalV4ForUMC130,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse.class);
+ callback.receiveResultmodDnsSecDomainGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDnsSecDomainGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[65].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[65].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosHttpGetSipCusProV4ForUMC
+ * @param addDdosHttpGetSipCusProV4ForUMC132
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse addDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC addDdosHttpGetSipCusProV4ForUMC132)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[66].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetSipCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetSipCusProV4ForUMC132,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosHttpGetSipCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipCusProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosHttpGetSipCusProV4ForUMC
+ * @param addDdosHttpGetSipCusProV4ForUMC132
+ */
+ public void startaddDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC addDdosHttpGetSipCusProV4ForUMC132,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[66].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetSipCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetSipCusProV4ForUMC132,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipCusProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse.class);
+ callback.receiveResultaddDdosHttpGetSipCusProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosHttpGetSipCusProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[66].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[66].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalAckPayloadFromUMC
+ * @param getDdosGlobalAckPayloadFromUMC134
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse getDdosGlobalAckPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC getDdosGlobalAckPayloadFromUMC134)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[67].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalAckPayloadFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalAckPayloadFromUMC134,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalAckPayloadFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalAckPayloadFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalAckPayloadFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalAckPayloadFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalAckPayloadFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalAckPayloadFromUMC
+ * @param getDdosGlobalAckPayloadFromUMC134
+ */
+ public void startgetDdosGlobalAckPayloadFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC getDdosGlobalAckPayloadFromUMC134,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[67].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalAckPayloadFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalAckPayloadFromUMC134,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalAckPayloadFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalAckPayloadFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalAckPayloadFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalAckPayloadFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalAckPayloadFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalAckPayloadFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalAckPayloadFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[67].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[67].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalTcpFragFromUMC
+ * @param getDdosGlobalTcpFragFromUMC136
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse getDdosGlobalTcpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC getDdosGlobalTcpFragFromUMC136)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[68].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpFragFromUMC136,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalTcpFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFragFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalTcpFragFromUMC
+ * @param getDdosGlobalTcpFragFromUMC136
+ */
+ public void startgetDdosGlobalTcpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC getDdosGlobalTcpFragFromUMC136,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[68].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalTcpFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalTcpFragFromUMC136,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFragFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalTcpFragFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalTcpFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalTcpFragFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[68].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[68].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#stopBypassManualTractionStrategyForUMC
+ * @param stopBypassManualTractionStrategyForUMC138
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse stopBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC stopBypassManualTractionStrategyForUMC138)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[69].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopBypassManualTractionStrategyForUMC138,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstopBypassManualTractionStrategyForUMC
+ * @param stopBypassManualTractionStrategyForUMC138
+ */
+ public void startstopBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC stopBypassManualTractionStrategyForUMC138,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[69].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopBypassManualTractionStrategyForUMC138,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse.class);
+ callback.receiveResultstopBypassManualTractionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstopBypassManualTractionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[69].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[69].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addFingerprintOtherForUMC
+ * @param addFingerprintOtherForUMC140
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse addFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC addFingerprintOtherForUMC140)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[70].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintOtherForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintOtherForUMC140,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addFingerprintOtherForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintOtherForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addFingerprintOtherForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintOtherForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintOtherForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddFingerprintOtherForUMC
+ * @param addFingerprintOtherForUMC140
+ */
+ public void startaddFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC addFingerprintOtherForUMC140,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[70].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addFingerprintOtherForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addFingerprintOtherForUMC140,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintOtherForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintOtherForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse.class);
+ callback.receiveResultaddFingerprintOtherForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddFingerprintOtherForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintOtherForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintOtherForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addFingerprintOtherForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddFingerprintOtherForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddFingerprintOtherForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddFingerprintOtherForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[70].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[70].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDdosHttpGetSipGloProV4ForUMC
+ * @param modDdosHttpGetSipGloProV4ForUMC142
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse modDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC modDdosHttpGetSipGloProV4ForUMC142)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[71].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetSipGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetSipGloProV4ForUMC142,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDdosHttpGetSipGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipGloProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDdosHttpGetSipGloProV4ForUMC
+ * @param modDdosHttpGetSipGloProV4ForUMC142
+ */
+ public void startmodDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC modDdosHttpGetSipGloProV4ForUMC142,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[71].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetSipGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetSipGloProV4ForUMC142,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipGloProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse.class);
+ callback.receiveResultmodDdosHttpGetSipGloProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDdosHttpGetSipGloProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[71].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[71].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllAnomalyDetectionStrategyFromUMC
+ * @param getAllAnomalyDetectionStrategyFromUMC144
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse getAllAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC getAllAnomalyDetectionStrategyFromUMC144)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[72].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllAnomalyDetectionStrategyFromUMC144,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllAnomalyDetectionStrategyFromUMC
+ * @param getAllAnomalyDetectionStrategyFromUMC144
+ */
+ public void startgetAllAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC getAllAnomalyDetectionStrategyFromUMC144,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[72].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllAnomalyDetectionStrategyFromUMC144,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse.class);
+ callback.receiveResultgetAllAnomalyDetectionStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllAnomalyDetectionStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[72].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[72].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startAbnormalTaskForUMC
+ * @param startAbnormalTaskForUMC146
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse startAbnormalTaskForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC startAbnormalTaskForUMC146)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[73].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startAbnormalTaskForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startAbnormalTaskForUMC146,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "startAbnormalTaskForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "startAbnormalTaskForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstartAbnormalTaskForUMC
+ * @param startAbnormalTaskForUMC146
+ */
+ public void startstartAbnormalTaskForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC startAbnormalTaskForUMC146,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[73].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/startAbnormalTaskForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ startAbnormalTaskForUMC146,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse.class);
+ callback.receiveResultstartAbnormalTaskForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstartAbnormalTaskForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "startAbnormalTaskForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstartAbnormalTaskForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartAbnormalTaskForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstartAbnormalTaskForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstartAbnormalTaskForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[73].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[73].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modBlackAndWhiteListProtection
+ * @param modBlackAndWhiteListProtection148
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse modBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection modBlackAndWhiteListProtection148)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[74].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBlackAndWhiteListProtectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBlackAndWhiteListProtection148,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modBlackAndWhiteListProtection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackAndWhiteListProtection"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackAndWhiteListProtection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackAndWhiteListProtection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackAndWhiteListProtection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodBlackAndWhiteListProtection
+ * @param modBlackAndWhiteListProtection148
+ */
+ public void startmodBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection modBlackAndWhiteListProtection148,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[74].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBlackAndWhiteListProtectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBlackAndWhiteListProtection148,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackAndWhiteListProtection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackAndWhiteListProtection"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse.class);
+ callback.receiveResultmodBlackAndWhiteListProtection((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodBlackAndWhiteListProtection(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackAndWhiteListProtection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackAndWhiteListProtection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBlackAndWhiteListProtection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodBlackAndWhiteListProtection(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErrormodBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErrormodBlackAndWhiteListProtection(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodBlackAndWhiteListProtection(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[74].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[74].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDnsSipGlobalV4ForUMC
+ * @param addDnsSipGlobalV4ForUMC150
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse addDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC addDnsSipGlobalV4ForUMC150)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[75].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSipGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSipGlobalV4ForUMC150,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDnsSipGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addDnsSipGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDnsSipGlobalV4ForUMC
+ * @param addDnsSipGlobalV4ForUMC150
+ */
+ public void startaddDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC addDnsSipGlobalV4ForUMC150,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[75].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsSipGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsSipGlobalV4ForUMC150,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse.class);
+ callback.receiveResultaddDnsSipGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsSipGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDnsSipGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[75].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[75].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addAnomalyDetectionStrategyForUMC
+ * @param addAnomalyDetectionStrategyForUMC152
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse addAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC addAnomalyDetectionStrategyForUMC152)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[76].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addAnomalyDetectionStrategyForUMC152,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addAnomalyDetectionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddAnomalyDetectionStrategyForUMC
+ * @param addAnomalyDetectionStrategyForUMC152
+ */
+ public void startaddAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC addAnomalyDetectionStrategyForUMC152,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[76].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addAnomalyDetectionStrategyForUMC152,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addAnomalyDetectionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse.class);
+ callback.receiveResultaddAnomalyDetectionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddAnomalyDetectionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[76].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[76].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosACProtectionForUMC
+ * @param addDdosACProtectionForUMC154
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse addDdosACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC addDdosACProtectionForUMC154)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[77].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosACProtectionForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosACProtectionForUMC154,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosACProtectionForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosACProtectionForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addDdosACProtectionForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosACProtectionForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosACProtectionForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosACProtectionForUMC
+ * @param addDdosACProtectionForUMC154
+ */
+ public void startaddDdosACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC addDdosACProtectionForUMC154,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[77].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosACProtectionForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosACProtectionForUMC154,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosACProtectionForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosACProtectionForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse.class);
+ callback.receiveResultaddDdosACProtectionForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosACProtectionForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosACProtectionForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosACProtectionForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosACProtectionForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosACProtectionForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosACProtectionForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosACProtectionForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[77].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[77].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosHttpGetSipCusProV4ForUMC
+ * @param delDdosHttpGetSipCusProV4ForUMC156
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse delDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC delDdosHttpGetSipCusProV4ForUMC156)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[78].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetSipCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetSipCusProV4ForUMC156,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosHttpGetSipCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipCusProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosHttpGetSipCusProV4ForUMC
+ * @param delDdosHttpGetSipCusProV4ForUMC156
+ */
+ public void startdelDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC delDdosHttpGetSipCusProV4ForUMC156,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[78].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetSipCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetSipCusProV4ForUMC156,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipCusProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse.class);
+ callback.receiveResultdelDdosHttpGetSipCusProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosHttpGetSipCusProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[78].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[78].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalUdpLengthFromUMC
+ * @param getDdosGlobalUdpLengthFromUMC158
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse getDdosGlobalUdpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC getDdosGlobalUdpLengthFromUMC158)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[79].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalUdpLengthFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalUdpLengthFromUMC158,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalUdpLengthFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpLengthFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpLengthFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpLengthFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpLengthFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalUdpLengthFromUMC
+ * @param getDdosGlobalUdpLengthFromUMC158
+ */
+ public void startgetDdosGlobalUdpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC getDdosGlobalUdpLengthFromUMC158,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[79].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalUdpLengthFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalUdpLengthFromUMC158,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpLengthFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpLengthFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalUdpLengthFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpLengthFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpLengthFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpLengthFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalUdpLengthFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[79].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[79].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosACProtectionForUMC
+ * @param delDdosACProtectionForUMC160
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse delDdosACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC delDdosACProtectionForUMC160)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[80].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosACProtectionForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosACProtectionForUMC160,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosACProtectionForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosACProtectionForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delDdosACProtectionForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosACProtectionForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosACProtectionForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosACProtectionForUMC
+ * @param delDdosACProtectionForUMC160
+ */
+ public void startdelDdosACProtectionForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC delDdosACProtectionForUMC160,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[80].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosACProtectionForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosACProtectionForUMC160,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosACProtectionForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosACProtectionForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse.class);
+ callback.receiveResultdelDdosACProtectionForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosACProtectionForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosACProtectionForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosACProtectionForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosACProtectionForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosACProtectionForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosACProtectionForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosACProtectionForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosACProtectionForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[80].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[80].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDdosHttpGetUriGloProV4ForUMC
+ * @param modDdosHttpGetUriGloProV4ForUMC162
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse modDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC modDdosHttpGetUriGloProV4ForUMC162)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[81].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetUriGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetUriGloProV4ForUMC162,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDdosHttpGetUriGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriGloProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDdosHttpGetUriGloProV4ForUMC
+ * @param modDdosHttpGetUriGloProV4ForUMC162
+ */
+ public void startmodDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC modDdosHttpGetUriGloProV4ForUMC162,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[81].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetUriGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetUriGloProV4ForUMC162,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriGloProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse.class);
+ callback.receiveResultmodDdosHttpGetUriGloProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDdosHttpGetUriGloProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[81].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[81].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosHttpGetUriGloProV4ForUMC
+ * @param delDdosHttpGetUriGloProV4ForUMC164
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse delDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC delDdosHttpGetUriGloProV4ForUMC164)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[82].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetUriGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetUriGloProV4ForUMC164,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosHttpGetUriGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriGloProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosHttpGetUriGloProV4ForUMC
+ * @param delDdosHttpGetUriGloProV4ForUMC164
+ */
+ public void startdelDdosHttpGetUriGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC delDdosHttpGetUriGloProV4ForUMC164,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[82].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosHttpGetUriGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosHttpGetUriGloProV4ForUMC164,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriGloProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse.class);
+ callback.receiveResultdelDdosHttpGetUriGloProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosHttpGetUriGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosHttpGetUriGloProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[82].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[82].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDnsDomainGlobalV4ForUMC
+ * @param delDnsDomainGlobalV4ForUMC166
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse delDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC delDnsDomainGlobalV4ForUMC166)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[83].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsDomainGlobalV4ForUMC166,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDnsDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDnsDomainGlobalV4ForUMC
+ * @param delDnsDomainGlobalV4ForUMC166
+ */
+ public void startdelDnsDomainGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC delDnsDomainGlobalV4ForUMC166,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[83].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsDomainGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsDomainGlobalV4ForUMC166,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse.class);
+ callback.receiveResultdelDnsDomainGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDnsDomainGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[83].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[83].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDnsDomainCustomV4ForUMC
+ * @param delDnsDomainCustomV4ForUMC168
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse delDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC delDnsDomainCustomV4ForUMC168)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[84].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsDomainCustomV4ForUMC168,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDnsDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDnsDomainCustomV4ForUMC
+ * @param delDnsDomainCustomV4ForUMC168
+ */
+ public void startdelDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC delDnsDomainCustomV4ForUMC168,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[84].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsDomainCustomV4ForUMC168,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse.class);
+ callback.receiveResultdelDnsDomainCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDnsDomainCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[84].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[84].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDnsSecDomainCustomV4FromUMC
+ * @param getDnsSecDomainCustomV4FromUMC170
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse getDnsSecDomainCustomV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC getDnsSecDomainCustomV4FromUMC170)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[85].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSecDomainCustomV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSecDomainCustomV4FromUMC170,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDnsSecDomainCustomV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainCustomV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainCustomV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainCustomV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainCustomV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDnsSecDomainCustomV4FromUMC
+ * @param getDnsSecDomainCustomV4FromUMC170
+ */
+ public void startgetDnsSecDomainCustomV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC getDnsSecDomainCustomV4FromUMC170,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[85].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSecDomainCustomV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSecDomainCustomV4FromUMC170,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainCustomV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainCustomV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse.class);
+ callback.receiveResultgetDnsSecDomainCustomV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainCustomV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainCustomV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainCustomV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDnsSecDomainCustomV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[85].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[85].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllProtectDevices
+ * @param getAllProtectDevices172
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse getAllProtectDevices(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices getAllProtectDevices172)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[86].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectDevicesRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectDevices172,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "getAllProtectDevices")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectDevices"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getAllProtectDevices"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getAllProtectDevices"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getAllProtectDevices"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllProtectDevices
+ * @param getAllProtectDevices172
+ */
+ public void startgetAllProtectDevices(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices getAllProtectDevices172,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[86].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectDevicesRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectDevices172,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectDevices")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectDevices"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse.class);
+ callback.receiveResultgetAllProtectDevices((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllProtectDevices(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectDevices"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectDevices"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectDevices"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllProtectDevices(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectDevices(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectDevices(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectDevices(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectDevices(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllProtectDevices(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[86].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[86].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delAnomalyDetectionStrategyForUMC
+ * @param delAnomalyDetectionStrategyForUMC174
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse delAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC delAnomalyDetectionStrategyForUMC174)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[87].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delAnomalyDetectionStrategyForUMC174,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delAnomalyDetectionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelAnomalyDetectionStrategyForUMC
+ * @param delAnomalyDetectionStrategyForUMC174
+ */
+ public void startdelAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC delAnomalyDetectionStrategyForUMC174,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[87].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delAnomalyDetectionStrategyForUMC174,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delAnomalyDetectionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse.class);
+ callback.receiveResultdelAnomalyDetectionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelAnomalyDetectionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[87].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[87].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#deleteCompleteAnomalyDetectionStrategyForUMC
+ * @param deleteCompleteAnomalyDetectionStrategyForUMC176
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse deleteCompleteAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC deleteCompleteAnomalyDetectionStrategyForUMC176)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[88].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteCompleteAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteCompleteAnomalyDetectionStrategyForUMC176,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "deleteCompleteAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteCompleteAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdeleteCompleteAnomalyDetectionStrategyForUMC
+ * @param deleteCompleteAnomalyDetectionStrategyForUMC176
+ */
+ public void startdeleteCompleteAnomalyDetectionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC deleteCompleteAnomalyDetectionStrategyForUMC176,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[88].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteCompleteAnomalyDetectionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteCompleteAnomalyDetectionStrategyForUMC176,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteCompleteAnomalyDetectionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse.class);
+ callback.receiveResultdeleteCompleteAnomalyDetectionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteCompleteAnomalyDetectionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteCompleteAnomalyDetectionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordeleteCompleteAnomalyDetectionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[88].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[88].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modBypassManualTractionStrategyForUMC
+ * @param modBypassManualTractionStrategyForUMC178
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse modBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC modBypassManualTractionStrategyForUMC178)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[89].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBypassManualTractionStrategyForUMC178,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodBypassManualTractionStrategyForUMC
+ * @param modBypassManualTractionStrategyForUMC178
+ */
+ public void startmodBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC modBypassManualTractionStrategyForUMC178,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[89].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modBypassManualTractionStrategyForUMC178,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse.class);
+ callback.receiveResultmodBypassManualTractionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodBypassManualTractionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[89].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[89].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDnsSecDomainCustomV4ForUMC
+ * @param delDnsSecDomainCustomV4ForUMC180
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse delDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC delDnsSecDomainCustomV4ForUMC180)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[90].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSecDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSecDomainCustomV4ForUMC180,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDnsSecDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDnsSecDomainCustomV4ForUMC
+ * @param delDnsSecDomainCustomV4ForUMC180
+ */
+ public void startdelDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC delDnsSecDomainCustomV4ForUMC180,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[90].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSecDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSecDomainCustomV4ForUMC180,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse.class);
+ callback.receiveResultdelDnsSecDomainCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDnsSecDomainCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[90].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[90].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalOtherFragForUMC
+ * @param setDdosGlobalOtherFragForUMC182
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse setDdosGlobalOtherFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC setDdosGlobalOtherFragForUMC182)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[91].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalOtherFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalOtherFragForUMC182,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalOtherFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalOtherFragForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalOtherFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalOtherFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalOtherFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalOtherFragForUMC
+ * @param setDdosGlobalOtherFragForUMC182
+ */
+ public void startsetDdosGlobalOtherFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC setDdosGlobalOtherFragForUMC182,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[91].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalOtherFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalOtherFragForUMC182,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalOtherFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalOtherFragForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalOtherFragForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalOtherFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalOtherFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalOtherFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalOtherFragForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[91].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[91].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#linkProtectionStrategyTemplateForUMC
+ * @param linkProtectionStrategyTemplateForUMC184
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse linkProtectionStrategyTemplateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC linkProtectionStrategyTemplateForUMC184)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[92].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/linkProtectionStrategyTemplateForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ linkProtectionStrategyTemplateForUMC184,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "linkProtectionStrategyTemplateForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "linkProtectionStrategyTemplateForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "linkProtectionStrategyTemplateForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startlinkProtectionStrategyTemplateForUMC
+ * @param linkProtectionStrategyTemplateForUMC184
+ */
+ public void startlinkProtectionStrategyTemplateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC linkProtectionStrategyTemplateForUMC184,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[92].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/linkProtectionStrategyTemplateForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ linkProtectionStrategyTemplateForUMC184,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse.class);
+ callback.receiveResultlinkProtectionStrategyTemplateForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "linkProtectionStrategyTemplateForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "linkProtectionStrategyTemplateForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "linkProtectionStrategyTemplateForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ }
+ } else {
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ }
+ } else {
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(f);
+ }
+ } else {
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorlinkProtectionStrategyTemplateForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[92].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[92].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getFingerprintUdpFromUMC
+ * @param getFingerprintUdpFromUMC186
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse getFingerprintUdpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC getFingerprintUdpFromUMC186)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[93].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintUdpFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintUdpFromUMC186,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getFingerprintUdpFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintUdpFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getFingerprintUdpFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintUdpFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintUdpFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetFingerprintUdpFromUMC
+ * @param getFingerprintUdpFromUMC186
+ */
+ public void startgetFingerprintUdpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC getFingerprintUdpFromUMC186,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[93].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintUdpFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintUdpFromUMC186,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintUdpFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintUdpFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse.class);
+ callback.receiveResultgetFingerprintUdpFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetFingerprintUdpFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintUdpFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintUdpFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintUdpFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetFingerprintUdpFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintUdpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintUdpFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetFingerprintUdpFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[93].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[93].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalTcpLengthForUMC
+ * @param setDdosGlobalTcpLengthForUMC188
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse setDdosGlobalTcpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC setDdosGlobalTcpLengthForUMC188)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[94].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpLengthForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpLengthForUMC188,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalTcpLengthForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpLengthForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpLengthForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpLengthForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpLengthForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalTcpLengthForUMC
+ * @param setDdosGlobalTcpLengthForUMC188
+ */
+ public void startsetDdosGlobalTcpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC setDdosGlobalTcpLengthForUMC188,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[94].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpLengthForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpLengthForUMC188,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpLengthForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpLengthForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalTcpLengthForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpLengthForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpLengthForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpLengthForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalTcpLengthForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[94].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[94].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalIcmpPayloadForUMC
+ * @param setDdosGlobalIcmpPayloadForUMC190
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse setDdosGlobalIcmpPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC setDdosGlobalIcmpPayloadForUMC190)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[95].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalIcmpPayloadForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalIcmpPayloadForUMC190,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalIcmpPayloadForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpPayloadForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpPayloadForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpPayloadForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpPayloadForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalIcmpPayloadForUMC
+ * @param setDdosGlobalIcmpPayloadForUMC190
+ */
+ public void startsetDdosGlobalIcmpPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC setDdosGlobalIcmpPayloadForUMC190,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[95].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalIcmpPayloadForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalIcmpPayloadForUMC190,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpPayloadForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpPayloadForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalIcmpPayloadForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpPayloadForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpPayloadForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpPayloadForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalIcmpPayloadForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[95].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[95].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#deleteProtectionObjectForUMC
+ * @param deleteProtectionObjectForUMC192
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse deleteProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC deleteProtectionObjectForUMC192)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[96].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteProtectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteProtectionObjectForUMC192,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "deleteProtectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdeleteProtectionObjectForUMC
+ * @param deleteProtectionObjectForUMC192
+ */
+ public void startdeleteProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC deleteProtectionObjectForUMC192,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[96].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteProtectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteProtectionObjectForUMC192,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse.class);
+ callback.receiveResultdeleteProtectionObjectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordeleteProtectionObjectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteProtectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordeleteProtectionObjectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteProtectionObjectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordeleteProtectionObjectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[96].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[96].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delFingerprintOtherForUMC
+ * @param delFingerprintOtherForUMC194
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse delFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC delFingerprintOtherForUMC194)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[97].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintOtherForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintOtherForUMC194,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delFingerprintOtherForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintOtherForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delFingerprintOtherForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintOtherForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintOtherForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelFingerprintOtherForUMC
+ * @param delFingerprintOtherForUMC194
+ */
+ public void startdelFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC delFingerprintOtherForUMC194,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[97].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintOtherForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintOtherForUMC194,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintOtherForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintOtherForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse.class);
+ callback.receiveResultdelFingerprintOtherForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelFingerprintOtherForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintOtherForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintOtherForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintOtherForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelFingerprintOtherForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintOtherForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelFingerprintOtherForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[97].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[97].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosHttpGetUriGloProV4FromUMC
+ * @param getDdosHttpGetUriGloProV4FromUMC196
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse getDdosHttpGetUriGloProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC getDdosHttpGetUriGloProV4FromUMC196)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[98].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetUriGloProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetUriGloProV4FromUMC196,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosHttpGetUriGloProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriGloProV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriGloProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriGloProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriGloProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosHttpGetUriGloProV4FromUMC
+ * @param getDdosHttpGetUriGloProV4FromUMC196
+ */
+ public void startgetDdosHttpGetUriGloProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC getDdosHttpGetUriGloProV4FromUMC196,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[98].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetUriGloProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetUriGloProV4FromUMC196,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriGloProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriGloProV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse.class);
+ callback.receiveResultgetDdosHttpGetUriGloProV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriGloProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriGloProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriGloProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosHttpGetUriGloProV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[98].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[98].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllProtectionTargetWithStrategyAssociationRelationshipForUMC
+ * @param getAllProtectionTargetWithStrategyAssociationRelationshipForUMC198
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse getAllProtectionTargetWithStrategyAssociationRelationshipForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC getAllProtectionTargetWithStrategyAssociationRelationshipForUMC198)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[99].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectionTargetWithStrategyAssociationRelationshipForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectionTargetWithStrategyAssociationRelationshipForUMC198,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC
+ * @param getAllProtectionTargetWithStrategyAssociationRelationshipForUMC198
+ */
+ public void startgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC getAllProtectionTargetWithStrategyAssociationRelationshipForUMC198,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[99].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectionTargetWithStrategyAssociationRelationshipForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectionTargetWithStrategyAssociationRelationshipForUMC198,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse.class);
+ callback.receiveResultgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllProtectionTargetWithStrategyAssociationRelationshipForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[99].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[99].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDetectionObjectForUMC
+ * @param addDetectionObjectForUMC200
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse addDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC addDetectionObjectForUMC200)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[100].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDetectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDetectionObjectForUMC200,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDetectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDetectionObjectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addDetectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDetectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDetectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDetectionObjectForUMC
+ * @param addDetectionObjectForUMC200
+ */
+ public void startaddDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC addDetectionObjectForUMC200,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[100].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDetectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDetectionObjectForUMC200,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDetectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDetectionObjectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse.class);
+ callback.receiveResultaddDetectionObjectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDetectionObjectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDetectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDetectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDetectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDetectionObjectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDetectionObjectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDetectionObjectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[100].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[100].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modifyProtectionObjectForUMC
+ * @param modifyProtectionObjectForUMC202
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse modifyProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC modifyProtectionObjectForUMC202)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[101].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modifyProtectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modifyProtectionObjectForUMC202,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modifyProtectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyProtectionObjectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyProtectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyProtectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyProtectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodifyProtectionObjectForUMC
+ * @param modifyProtectionObjectForUMC202
+ */
+ public void startmodifyProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC modifyProtectionObjectForUMC202,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[101].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modifyProtectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modifyProtectionObjectForUMC202,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyProtectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyProtectionObjectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse.class);
+ callback.receiveResultmodifyProtectionObjectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodifyProtectionObjectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyProtectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyProtectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modifyProtectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodifyProtectionObjectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodifyProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodifyProtectionObjectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodifyProtectionObjectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[101].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[101].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalUdpFragForUMC
+ * @param setDdosGlobalUdpFragForUMC204
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse setDdosGlobalUdpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC setDdosGlobalUdpFragForUMC204)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[102].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalUdpFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalUdpFragForUMC204,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalUdpFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpFragForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalUdpFragForUMC
+ * @param setDdosGlobalUdpFragForUMC204
+ */
+ public void startsetDdosGlobalUdpFragForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC setDdosGlobalUdpFragForUMC204,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[102].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalUdpFragForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalUdpFragForUMC204,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpFragForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpFragForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalUdpFragForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpFragForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpFragForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpFragForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalUdpFragForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[102].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[102].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalIcmpLengthForUMC
+ * @param setDdosGlobalIcmpLengthForUMC206
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse setDdosGlobalIcmpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC setDdosGlobalIcmpLengthForUMC206)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[103].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalIcmpLengthForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalIcmpLengthForUMC206,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalIcmpLengthForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpLengthForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpLengthForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpLengthForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpLengthForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalIcmpLengthForUMC
+ * @param setDdosGlobalIcmpLengthForUMC206
+ */
+ public void startsetDdosGlobalIcmpLengthForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC setDdosGlobalIcmpLengthForUMC206,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[103].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalIcmpLengthForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalIcmpLengthForUMC206,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpLengthForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpLengthForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalIcmpLengthForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpLengthForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpLengthForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalIcmpLengthForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalIcmpLengthForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[103].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[103].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalUdpFragFromUMC
+ * @param getDdosGlobalUdpFragFromUMC208
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse getDdosGlobalUdpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC getDdosGlobalUdpFragFromUMC208)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[104].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalUdpFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalUdpFragFromUMC208,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalUdpFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpFragFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalUdpFragFromUMC
+ * @param getDdosGlobalUdpFragFromUMC208
+ */
+ public void startgetDdosGlobalUdpFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC getDdosGlobalUdpFragFromUMC208,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[104].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalUdpFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalUdpFragFromUMC208,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpFragFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalUdpFragFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalUdpFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalUdpFragFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[104].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[104].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getFingerprintTcpFromUMC
+ * @param getFingerprintTcpFromUMC210
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse getFingerprintTcpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC getFingerprintTcpFromUMC210)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[105].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintTcpFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintTcpFromUMC210,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getFingerprintTcpFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintTcpFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getFingerprintTcpFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintTcpFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintTcpFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetFingerprintTcpFromUMC
+ * @param getFingerprintTcpFromUMC210
+ */
+ public void startgetFingerprintTcpFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC getFingerprintTcpFromUMC210,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[105].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintTcpFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintTcpFromUMC210,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintTcpFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintTcpFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse.class);
+ callback.receiveResultgetFingerprintTcpFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetFingerprintTcpFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintTcpFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintTcpFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintTcpFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetFingerprintTcpFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintTcpFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintTcpFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetFingerprintTcpFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[105].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[105].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalTcpFlagForUMC
+ * @param setDdosGlobalTcpFlagForUMC212
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse setDdosGlobalTcpFlagForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC setDdosGlobalTcpFlagForUMC212)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[106].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpFlagForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpFlagForUMC212,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalTcpFlagForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFlagForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFlagForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFlagForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFlagForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalTcpFlagForUMC
+ * @param setDdosGlobalTcpFlagForUMC212
+ */
+ public void startsetDdosGlobalTcpFlagForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC setDdosGlobalTcpFlagForUMC212,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[106].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpFlagForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpFlagForUMC212,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFlagForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFlagForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalTcpFlagForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFlagForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFlagForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpFlagForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalTcpFlagForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[106].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[106].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addBlackHoleAutoStrategyForUMC
+ * @param addBlackHoleAutoStrategyForUMC214
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse addBlackHoleAutoStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC addBlackHoleAutoStrategyForUMC214)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[107].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBlackHoleAutoStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBlackHoleAutoStrategyForUMC214,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addBlackHoleAutoStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleAutoStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleAutoStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleAutoStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleAutoStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddBlackHoleAutoStrategyForUMC
+ * @param addBlackHoleAutoStrategyForUMC214
+ */
+ public void startaddBlackHoleAutoStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC addBlackHoleAutoStrategyForUMC214,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[107].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBlackHoleAutoStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBlackHoleAutoStrategyForUMC214,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleAutoStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleAutoStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse.class);
+ callback.receiveResultaddBlackHoleAutoStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleAutoStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleAutoStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackHoleAutoStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddBlackHoleAutoStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[107].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[107].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getCompleteAnomalyDetectionStrategyFromUMC
+ * @param getCompleteAnomalyDetectionStrategyFromUMC216
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse getCompleteAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC getCompleteAnomalyDetectionStrategyFromUMC216)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[108].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getCompleteAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getCompleteAnomalyDetectionStrategyFromUMC216,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getCompleteAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetCompleteAnomalyDetectionStrategyFromUMC
+ * @param getCompleteAnomalyDetectionStrategyFromUMC216
+ */
+ public void startgetCompleteAnomalyDetectionStrategyFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC getCompleteAnomalyDetectionStrategyFromUMC216,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[108].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getCompleteAnomalyDetectionStrategyFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getCompleteAnomalyDetectionStrategyFromUMC216,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse.class);
+ callback.receiveResultgetCompleteAnomalyDetectionStrategyFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getCompleteAnomalyDetectionStrategyFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getCompleteAnomalyDetectionStrategyFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetCompleteAnomalyDetectionStrategyFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[108].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[108].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modFingerprintOtherForUMC
+ * @param modFingerprintOtherForUMC218
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse modFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC modFingerprintOtherForUMC218)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[109].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintOtherForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintOtherForUMC218,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modFingerprintOtherForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintOtherForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modFingerprintOtherForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintOtherForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintOtherForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodFingerprintOtherForUMC
+ * @param modFingerprintOtherForUMC218
+ */
+ public void startmodFingerprintOtherForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC modFingerprintOtherForUMC218,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[109].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintOtherForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintOtherForUMC218,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintOtherForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintOtherForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse.class);
+ callback.receiveResultmodFingerprintOtherForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodFingerprintOtherForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintOtherForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintOtherForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintOtherForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodFingerprintOtherForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintOtherForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintOtherForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodFingerprintOtherForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[109].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[109].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosHttpGetUriCusProV4ForUMC
+ * @param addDdosHttpGetUriCusProV4ForUMC220
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse addDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC addDdosHttpGetUriCusProV4ForUMC220)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[110].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetUriCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetUriCusProV4ForUMC220,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosHttpGetUriCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriCusProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosHttpGetUriCusProV4ForUMC
+ * @param addDdosHttpGetUriCusProV4ForUMC220
+ */
+ public void startaddDdosHttpGetUriCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC addDdosHttpGetUriCusProV4ForUMC220,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[110].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetUriCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetUriCusProV4ForUMC220,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriCusProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse.class);
+ callback.receiveResultaddDdosHttpGetUriCusProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetUriCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosHttpGetUriCusProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[110].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[110].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addBypassManualTractionStrategyForUMC
+ * @param addBypassManualTractionStrategyForUMC222
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse addBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC addBypassManualTractionStrategyForUMC222)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[111].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBypassManualTractionStrategyForUMC222,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddBypassManualTractionStrategyForUMC
+ * @param addBypassManualTractionStrategyForUMC222
+ */
+ public void startaddBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC addBypassManualTractionStrategyForUMC222,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[111].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBypassManualTractionStrategyForUMC222,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse.class);
+ callback.receiveResultaddBypassManualTractionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddBypassManualTractionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[111].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[111].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllDetectionObjectFromUMC
+ * @param getAllDetectionObjectFromUMC224
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse getAllDetectionObjectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC getAllDetectionObjectFromUMC224)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[112].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllDetectionObjectFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllDetectionObjectFromUMC224,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllDetectionObjectFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectionObjectFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectionObjectFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectionObjectFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectionObjectFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllDetectionObjectFromUMC
+ * @param getAllDetectionObjectFromUMC224
+ */
+ public void startgetAllDetectionObjectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC getAllDetectionObjectFromUMC224,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[112].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllDetectionObjectFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllDetectionObjectFromUMC224,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectionObjectFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectionObjectFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse.class);
+ callback.receiveResultgetAllDetectionObjectFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllDetectionObjectFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectionObjectFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectionObjectFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllDetectionObjectFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllDetectionObjectFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllDetectionObjectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllDetectionObjectFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllDetectionObjectFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[112].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[112].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDdosHttpGetSipCusProV4ForUMC
+ * @param modDdosHttpGetSipCusProV4ForUMC226
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse modDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC modDdosHttpGetSipCusProV4ForUMC226)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[113].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetSipCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetSipCusProV4ForUMC226,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDdosHttpGetSipCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipCusProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDdosHttpGetSipCusProV4ForUMC
+ * @param modDdosHttpGetSipCusProV4ForUMC226
+ */
+ public void startmodDdosHttpGetSipCusProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC modDdosHttpGetSipCusProV4ForUMC226,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[113].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosHttpGetSipCusProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosHttpGetSipCusProV4ForUMC226,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipCusProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipCusProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse.class);
+ callback.receiveResultmodDdosHttpGetSipCusProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipCusProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosHttpGetSipCusProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDdosHttpGetSipCusProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[113].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[113].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDnsSecDomainGlobalV4FromUMC
+ * @param getDnsSecDomainGlobalV4FromUMC228
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse getDnsSecDomainGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC getDnsSecDomainGlobalV4FromUMC228)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[114].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSecDomainGlobalV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSecDomainGlobalV4FromUMC228,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDnsSecDomainGlobalV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainGlobalV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainGlobalV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainGlobalV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainGlobalV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDnsSecDomainGlobalV4FromUMC
+ * @param getDnsSecDomainGlobalV4FromUMC228
+ */
+ public void startgetDnsSecDomainGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC getDnsSecDomainGlobalV4FromUMC228,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[114].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSecDomainGlobalV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSecDomainGlobalV4FromUMC228,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainGlobalV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainGlobalV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse.class);
+ callback.receiveResultgetDnsSecDomainGlobalV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainGlobalV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainGlobalV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSecDomainGlobalV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDnsSecDomainGlobalV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[114].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[114].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDdosCCuserGroupV4ForUMC
+ * @param delDdosCCuserGroupV4ForUMC230
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse delDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC delDdosCCuserGroupV4ForUMC230)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[115].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosCCuserGroupV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosCCuserGroupV4ForUMC230,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDdosCCuserGroupV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosCCuserGroupV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosCCuserGroupV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosCCuserGroupV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosCCuserGroupV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDdosCCuserGroupV4ForUMC
+ * @param delDdosCCuserGroupV4ForUMC230
+ */
+ public void startdelDdosCCuserGroupV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC delDdosCCuserGroupV4ForUMC230,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[115].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDdosCCuserGroupV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDdosCCuserGroupV4ForUMC230,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosCCuserGroupV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosCCuserGroupV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse.class);
+ callback.receiveResultdelDdosCCuserGroupV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosCCuserGroupV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosCCuserGroupV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDdosCCuserGroupV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDdosCCuserGroupV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[115].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[115].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalOtherFragFromUMC
+ * @param getDdosGlobalOtherFragFromUMC232
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse getDdosGlobalOtherFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC getDdosGlobalOtherFragFromUMC232)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[116].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalOtherFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalOtherFragFromUMC232,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalOtherFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalOtherFragFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalOtherFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalOtherFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalOtherFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalOtherFragFromUMC
+ * @param getDdosGlobalOtherFragFromUMC232
+ */
+ public void startgetDdosGlobalOtherFragFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC getDdosGlobalOtherFragFromUMC232,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[116].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalOtherFragFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalOtherFragFromUMC232,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalOtherFragFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalOtherFragFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalOtherFragFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalOtherFragFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalOtherFragFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalOtherFragFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalOtherFragFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[116].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[116].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modFingerprintIcmpForUMC
+ * @param modFingerprintIcmpForUMC234
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse modFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC modFingerprintIcmpForUMC234)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[117].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintIcmpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintIcmpForUMC234,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modFingerprintIcmpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintIcmpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "modFingerprintIcmpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintIcmpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintIcmpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodFingerprintIcmpForUMC
+ * @param modFingerprintIcmpForUMC234
+ */
+ public void startmodFingerprintIcmpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC modFingerprintIcmpForUMC234,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[117].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modFingerprintIcmpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modFingerprintIcmpForUMC234,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintIcmpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintIcmpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse.class);
+ callback.receiveResultmodFingerprintIcmpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodFingerprintIcmpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintIcmpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintIcmpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modFingerprintIcmpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodFingerprintIcmpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintIcmpForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodFingerprintIcmpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodFingerprintIcmpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[117].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[117].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#stopBlackHoleStrategyForUMC
+ * @param stopBlackHoleStrategyForUMC236
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse stopBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC stopBlackHoleStrategyForUMC236)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[118].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopBlackHoleStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopBlackHoleStrategyForUMC236,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "stopBlackHoleStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBlackHoleStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBlackHoleStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBlackHoleStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBlackHoleStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstopBlackHoleStrategyForUMC
+ * @param stopBlackHoleStrategyForUMC236
+ */
+ public void startstopBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC stopBlackHoleStrategyForUMC236,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[118].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopBlackHoleStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopBlackHoleStrategyForUMC236,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBlackHoleStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBlackHoleStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse.class);
+ callback.receiveResultstopBlackHoleStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstopBlackHoleStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBlackHoleStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBlackHoleStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopBlackHoleStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstopBlackHoleStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopBlackHoleStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstopBlackHoleStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[118].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[118].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDnsSipGlobalV4FromUMC
+ * @param getDnsSipGlobalV4FromUMC238
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse getDnsSipGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC getDnsSipGlobalV4FromUMC238)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[119].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSipGlobalV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSipGlobalV4FromUMC238,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDnsSipGlobalV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipGlobalV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "getDnsSipGlobalV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipGlobalV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipGlobalV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDnsSipGlobalV4FromUMC
+ * @param getDnsSipGlobalV4FromUMC238
+ */
+ public void startgetDnsSipGlobalV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC getDnsSipGlobalV4FromUMC238,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[119].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDnsSipGlobalV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDnsSipGlobalV4FromUMC238,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipGlobalV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipGlobalV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse.class);
+ callback.receiveResultgetDnsSipGlobalV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipGlobalV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipGlobalV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDnsSipGlobalV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDnsSipGlobalV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[119].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[119].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getAllProtectionObjectFromUMC
+ * @param getAllProtectionObjectFromUMC240
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse getAllProtectionObjectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC getAllProtectionObjectFromUMC240)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[120].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectionObjectFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectionObjectFromUMC240,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getAllProtectionObjectFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionObjectFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionObjectFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionObjectFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionObjectFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetAllProtectionObjectFromUMC
+ * @param getAllProtectionObjectFromUMC240
+ */
+ public void startgetAllProtectionObjectFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC getAllProtectionObjectFromUMC240,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[120].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getAllProtectionObjectFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getAllProtectionObjectFromUMC240,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionObjectFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionObjectFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse.class);
+ callback.receiveResultgetAllProtectionObjectFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetAllProtectionObjectFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionObjectFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionObjectFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getAllProtectionObjectFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetAllProtectionObjectFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionObjectFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetAllProtectionObjectFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetAllProtectionObjectFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[120].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[120].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalUdpPayloadForUMC
+ * @param setDdosGlobalUdpPayloadForUMC242
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse setDdosGlobalUdpPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC setDdosGlobalUdpPayloadForUMC242)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[121].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalUdpPayloadForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalUdpPayloadForUMC242,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalUdpPayloadForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpPayloadForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpPayloadForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpPayloadForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpPayloadForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalUdpPayloadForUMC
+ * @param setDdosGlobalUdpPayloadForUMC242
+ */
+ public void startsetDdosGlobalUdpPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC setDdosGlobalUdpPayloadForUMC242,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[121].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalUdpPayloadForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalUdpPayloadForUMC242,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpPayloadForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpPayloadForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalUdpPayloadForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpPayloadForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpPayloadForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalUdpPayloadForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalUdpPayloadForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[121].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[121].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosHttpGetUriCusProV4FromUMC
+ * @param getDdosHttpGetUriCusProV4FromUMC244
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse getDdosHttpGetUriCusProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC getDdosHttpGetUriCusProV4FromUMC244)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[122].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetUriCusProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetUriCusProV4FromUMC244,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosHttpGetUriCusProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriCusProV4FromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriCusProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriCusProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriCusProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosHttpGetUriCusProV4FromUMC
+ * @param getDdosHttpGetUriCusProV4FromUMC244
+ */
+ public void startgetDdosHttpGetUriCusProV4FromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC getDdosHttpGetUriCusProV4FromUMC244,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[122].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosHttpGetUriCusProV4FromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosHttpGetUriCusProV4FromUMC244,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriCusProV4FromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriCusProV4FromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse.class);
+ callback.receiveResultgetDdosHttpGetUriCusProV4FromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriCusProV4FromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriCusProV4FromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosHttpGetUriCusProV4FromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosHttpGetUriCusProV4FromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[122].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[122].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delBypassManualTractionStrategyForUMC
+ * @param delBypassManualTractionStrategyForUMC246
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse delBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC delBypassManualTractionStrategyForUMC246)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[123].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delBypassManualTractionStrategyForUMC246,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelBypassManualTractionStrategyForUMC
+ * @param delBypassManualTractionStrategyForUMC246
+ */
+ public void startdelBypassManualTractionStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC delBypassManualTractionStrategyForUMC246,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[123].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delBypassManualTractionStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delBypassManualTractionStrategyForUMC246,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse.class);
+ callback.receiveResultdelBypassManualTractionStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBypassManualTractionStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBypassManualTractionStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBypassManualTractionStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelBypassManualTractionStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[123].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[123].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getFingerprintOtherFromUMC
+ * @param getFingerprintOtherFromUMC248
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse getFingerprintOtherFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC getFingerprintOtherFromUMC248)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[124].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintOtherFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintOtherFromUMC248,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getFingerprintOtherFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintOtherFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintOtherFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintOtherFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintOtherFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetFingerprintOtherFromUMC
+ * @param getFingerprintOtherFromUMC248
+ */
+ public void startgetFingerprintOtherFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC getFingerprintOtherFromUMC248,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[124].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getFingerprintOtherFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getFingerprintOtherFromUMC248,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintOtherFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintOtherFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse.class);
+ callback.receiveResultgetFingerprintOtherFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetFingerprintOtherFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintOtherFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintOtherFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getFingerprintOtherFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetFingerprintOtherFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintOtherFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetFingerprintOtherFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetFingerprintOtherFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[124].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[124].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#stopAbnormalTaskForUMC
+ * @param stopAbnormalTaskForUMC250
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse stopAbnormalTaskForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC stopAbnormalTaskForUMC250)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[125].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopAbnormalTaskForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopAbnormalTaskForUMC250,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "stopAbnormalTaskForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "stopAbnormalTaskForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startstopAbnormalTaskForUMC
+ * @param stopAbnormalTaskForUMC250
+ */
+ public void startstopAbnormalTaskForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC stopAbnormalTaskForUMC250,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[125].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/stopAbnormalTaskForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ stopAbnormalTaskForUMC250,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse.class);
+ callback.receiveResultstopAbnormalTaskForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorstopAbnormalTaskForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "stopAbnormalTaskForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorstopAbnormalTaskForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopAbnormalTaskForUMC(f);
+ }
+ } else {
+ callback.receiveErrorstopAbnormalTaskForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorstopAbnormalTaskForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[125].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[125].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDdosHttpGetSipGloProV4ForUMC
+ * @param addDdosHttpGetSipGloProV4ForUMC252
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse addDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC addDdosHttpGetSipGloProV4ForUMC252)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[126].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetSipGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetSipGloProV4ForUMC252,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDdosHttpGetSipGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipGloProV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDdosHttpGetSipGloProV4ForUMC
+ * @param addDdosHttpGetSipGloProV4ForUMC252
+ */
+ public void startaddDdosHttpGetSipGloProV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC addDdosHttpGetSipGloProV4ForUMC252,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[126].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDdosHttpGetSipGloProV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDdosHttpGetSipGloProV4ForUMC252,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipGloProV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipGloProV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse.class);
+ callback.receiveResultaddDdosHttpGetSipGloProV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipGloProV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDdosHttpGetSipGloProV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDdosHttpGetSipGloProV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[126].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[126].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalTcpStateForUMC
+ * @param setDdosGlobalTcpStateForUMC254
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse setDdosGlobalTcpStateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC setDdosGlobalTcpStateForUMC254)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[127].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpStateForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpStateForUMC254,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalTcpStateForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpStateForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpStateForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpStateForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpStateForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalTcpStateForUMC
+ * @param setDdosGlobalTcpStateForUMC254
+ */
+ public void startsetDdosGlobalTcpStateForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC setDdosGlobalTcpStateForUMC254,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[127].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalTcpStateForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalTcpStateForUMC254,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpStateForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpStateForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalTcpStateForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpStateForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpStateForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalTcpStateForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalTcpStateForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[127].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[127].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addProtectionObjectForUMC
+ * @param addProtectionObjectForUMC256
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse addProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC addProtectionObjectForUMC256)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[128].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addProtectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addProtectionObjectForUMC256,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addProtectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addProtectionObjectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "addProtectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addProtectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addProtectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddProtectionObjectForUMC
+ * @param addProtectionObjectForUMC256
+ */
+ public void startaddProtectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC addProtectionObjectForUMC256,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[128].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addProtectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addProtectionObjectForUMC256,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addProtectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addProtectionObjectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse.class);
+ callback.receiveResultaddProtectionObjectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddProtectionObjectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addProtectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addProtectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addProtectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddProtectionObjectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddProtectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddProtectionObjectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddProtectionObjectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[128].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[128].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDnsSecDomainCustomV4ForUMC
+ * @param modDnsSecDomainCustomV4ForUMC258
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse modDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC modDnsSecDomainCustomV4ForUMC258)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[129].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSecDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSecDomainCustomV4ForUMC258,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDnsSecDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDnsSecDomainCustomV4ForUMC
+ * @param modDnsSecDomainCustomV4ForUMC258
+ */
+ public void startmodDnsSecDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC modDnsSecDomainCustomV4ForUMC258,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[129].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDnsSecDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDnsSecDomainCustomV4ForUMC258,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse.class);
+ callback.receiveResultmodDnsSecDomainCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDnsSecDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDnsSecDomainCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[129].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[129].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#deleteDetectionObjectForUMC
+ * @param deleteDetectionObjectForUMC260
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse deleteDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC deleteDetectionObjectForUMC260)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[130].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteDetectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteDetectionObjectForUMC260,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "deleteDetectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteDetectionObjectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteDetectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteDetectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteDetectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdeleteDetectionObjectForUMC
+ * @param deleteDetectionObjectForUMC260
+ */
+ public void startdeleteDetectionObjectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC deleteDetectionObjectForUMC260,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[130].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/deleteDetectionObjectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ deleteDetectionObjectForUMC260,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteDetectionObjectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteDetectionObjectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse.class);
+ callback.receiveResultdeleteDetectionObjectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordeleteDetectionObjectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteDetectionObjectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteDetectionObjectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "deleteDetectionObjectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordeleteDetectionObjectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteDetectionObjectForUMC(f);
+ }
+ } else {
+ callback.receiveErrordeleteDetectionObjectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordeleteDetectionObjectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[130].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[130].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delFingerprintUdpForUMC
+ * @param delFingerprintUdpForUMC262
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse delFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC delFingerprintUdpForUMC262)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[131].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintUdpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintUdpForUMC262,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delFingerprintUdpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintUdpForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delFingerprintUdpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintUdpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintUdpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelFingerprintUdpForUMC
+ * @param delFingerprintUdpForUMC262
+ */
+ public void startdelFingerprintUdpForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC delFingerprintUdpForUMC262,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[131].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delFingerprintUdpForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delFingerprintUdpForUMC262,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintUdpForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintUdpForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse.class);
+ callback.receiveResultdelFingerprintUdpForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelFingerprintUdpForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintUdpForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintUdpForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delFingerprintUdpForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelFingerprintUdpForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintUdpForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelFingerprintUdpForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelFingerprintUdpForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[131].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[131].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalAckPayloadForUMC
+ * @param setDdosGlobalAckPayloadForUMC264
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse setDdosGlobalAckPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC setDdosGlobalAckPayloadForUMC264)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[132].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalAckPayloadForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalAckPayloadForUMC264,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalAckPayloadForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalAckPayloadForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalAckPayloadForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalAckPayloadForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalAckPayloadForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalAckPayloadForUMC
+ * @param setDdosGlobalAckPayloadForUMC264
+ */
+ public void startsetDdosGlobalAckPayloadForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC setDdosGlobalAckPayloadForUMC264,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[132].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalAckPayloadForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalAckPayloadForUMC264,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalAckPayloadForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalAckPayloadForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalAckPayloadForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalAckPayloadForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalAckPayloadForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalAckPayloadForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalAckPayloadForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[132].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[132].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#modDdosDnsRetryProtectForUMC
+ * @param modDdosDnsRetryProtectForUMC266
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse modDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC modDdosDnsRetryProtectForUMC266)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[133].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosDnsRetryProtectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosDnsRetryProtectForUMC266,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "modDdosDnsRetryProtectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosDnsRetryProtectForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosDnsRetryProtectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosDnsRetryProtectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosDnsRetryProtectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startmodDdosDnsRetryProtectForUMC
+ * @param modDdosDnsRetryProtectForUMC266
+ */
+ public void startmodDdosDnsRetryProtectForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC modDdosDnsRetryProtectForUMC266,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[133].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/modDdosDnsRetryProtectForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ modDdosDnsRetryProtectForUMC266,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosDnsRetryProtectForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosDnsRetryProtectForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse.class);
+ callback.receiveResultmodDdosDnsRetryProtectForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosDnsRetryProtectForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosDnsRetryProtectForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "modDdosDnsRetryProtectForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(f);
+ }
+ } else {
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrormodDdosDnsRetryProtectForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[133].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[133].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addDnsDomainCustomV4ForUMC
+ * @param addDnsDomainCustomV4ForUMC268
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse addDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC addDnsDomainCustomV4ForUMC268)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[134].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsDomainCustomV4ForUMC268,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addDnsDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainCustomV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddDnsDomainCustomV4ForUMC
+ * @param addDnsDomainCustomV4ForUMC268
+ */
+ public void startaddDnsDomainCustomV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC addDnsDomainCustomV4ForUMC268,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[134].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addDnsDomainCustomV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addDnsDomainCustomV4ForUMC268,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainCustomV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainCustomV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse.class);
+ callback.receiveResultaddDnsDomainCustomV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainCustomV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainCustomV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addDnsDomainCustomV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddDnsDomainCustomV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[134].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[134].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#setDdosGlobalSynFloodForUMC
+ * @param setDdosGlobalSynFloodForUMC270
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse setDdosGlobalSynFloodForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC setDdosGlobalSynFloodForUMC270)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[135].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalSynFloodForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalSynFloodForUMC270,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "setDdosGlobalSynFloodForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalSynFloodForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalSynFloodForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalSynFloodForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalSynFloodForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startsetDdosGlobalSynFloodForUMC
+ * @param setDdosGlobalSynFloodForUMC270
+ */
+ public void startsetDdosGlobalSynFloodForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC setDdosGlobalSynFloodForUMC270,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[135].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/setDdosGlobalSynFloodForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ setDdosGlobalSynFloodForUMC270,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalSynFloodForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalSynFloodForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse.class);
+ callback.receiveResultsetDdosGlobalSynFloodForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalSynFloodForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalSynFloodForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "setDdosGlobalSynFloodForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(f);
+ }
+ } else {
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorsetDdosGlobalSynFloodForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[135].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[135].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#addBlackAndWhiteListProtection
+ * @param addBlackAndWhiteListProtection272
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse addBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection addBlackAndWhiteListProtection272)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[136].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBlackAndWhiteListProtectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBlackAndWhiteListProtection272,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "addBlackAndWhiteListProtection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackAndWhiteListProtection"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackAndWhiteListProtection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackAndWhiteListProtection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackAndWhiteListProtection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startaddBlackAndWhiteListProtection
+ * @param addBlackAndWhiteListProtection272
+ */
+ public void startaddBlackAndWhiteListProtection(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection addBlackAndWhiteListProtection272,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[136].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/addBlackAndWhiteListProtectionRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ addBlackAndWhiteListProtection272,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackAndWhiteListProtection")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackAndWhiteListProtection"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse.class);
+ callback.receiveResultaddBlackAndWhiteListProtection((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErroraddBlackAndWhiteListProtection(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackAndWhiteListProtection"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackAndWhiteListProtection"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "addBlackAndWhiteListProtection"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErroraddBlackAndWhiteListProtection(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErroraddBlackAndWhiteListProtection(f);
+ }
+ } else {
+ callback.receiveErroraddBlackAndWhiteListProtection(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErroraddBlackAndWhiteListProtection(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[136].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[136].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delDnsSipGlobalV4ForUMC
+ * @param delDnsSipGlobalV4ForUMC274
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse delDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC delDnsSipGlobalV4ForUMC274)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[137].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSipGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSipGlobalV4ForUMC274,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delDnsSipGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipGlobalV4ForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(), "delDnsSipGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelDnsSipGlobalV4ForUMC
+ * @param delDnsSipGlobalV4ForUMC274
+ */
+ public void startdelDnsSipGlobalV4ForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC delDnsSipGlobalV4ForUMC274,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[137].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delDnsSipGlobalV4ForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delDnsSipGlobalV4ForUMC274,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipGlobalV4ForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipGlobalV4ForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse.class);
+ callback.receiveResultdelDnsSipGlobalV4ForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipGlobalV4ForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipGlobalV4ForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delDnsSipGlobalV4ForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelDnsSipGlobalV4ForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[137].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[137].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalIcmpLengthFromUMC
+ * @param getDdosGlobalIcmpLengthFromUMC276
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse getDdosGlobalIcmpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC getDdosGlobalIcmpLengthFromUMC276)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[138].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalIcmpLengthFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalIcmpLengthFromUMC276,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalIcmpLengthFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpLengthFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpLengthFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpLengthFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpLengthFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalIcmpLengthFromUMC
+ * @param getDdosGlobalIcmpLengthFromUMC276
+ */
+ public void startgetDdosGlobalIcmpLengthFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC getDdosGlobalIcmpLengthFromUMC276,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[138].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalIcmpLengthFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalIcmpLengthFromUMC276,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpLengthFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpLengthFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalIcmpLengthFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpLengthFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpLengthFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalIcmpLengthFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalIcmpLengthFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[138].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[138].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosACProtectionFromUMC
+ * @param getDdosACProtectionFromUMC278
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse getDdosACProtectionFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC getDdosACProtectionFromUMC278)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[139].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosACProtectionFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosACProtectionFromUMC278,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosACProtectionFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosACProtectionFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosACProtectionFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosACProtectionFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosACProtectionFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosACProtectionFromUMC
+ * @param getDdosACProtectionFromUMC278
+ */
+ public void startgetDdosACProtectionFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC getDdosACProtectionFromUMC278,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[139].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosACProtectionFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosACProtectionFromUMC278,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosACProtectionFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosACProtectionFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse.class);
+ callback.receiveResultgetDdosACProtectionFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosACProtectionFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosACProtectionFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosACProtectionFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosACProtectionFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosACProtectionFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosACProtectionFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosACProtectionFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosACProtectionFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[139].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[139].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#delBlackHoleStrategyForUMC
+ * @param delBlackHoleStrategyForUMC280
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse delBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC delBlackHoleStrategyForUMC280)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[140].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delBlackHoleStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delBlackHoleStrategyForUMC280,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "delBlackHoleStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackHoleStrategyForUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackHoleStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackHoleStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackHoleStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startdelBlackHoleStrategyForUMC
+ * @param delBlackHoleStrategyForUMC280
+ */
+ public void startdelBlackHoleStrategyForUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC delBlackHoleStrategyForUMC280,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[140].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/delBlackHoleStrategyForUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ delBlackHoleStrategyForUMC280,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackHoleStrategyForUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackHoleStrategyForUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse.class);
+ callback.receiveResultdelBlackHoleStrategyForUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrordelBlackHoleStrategyForUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackHoleStrategyForUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackHoleStrategyForUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "delBlackHoleStrategyForUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrordelBlackHoleStrategyForUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelBlackHoleStrategyForUMC(f);
+ }
+ } else {
+ callback.receiveErrordelBlackHoleStrategyForUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrordelBlackHoleStrategyForUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[140].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[140].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ /**
+ * Auto generated method signature
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#getDdosGlobalSynFloodFromUMC
+ * @param getDdosGlobalSynFloodFromUMC282
+ */
+ public com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse getDdosGlobalSynFloodFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC getDdosGlobalSynFloodFromUMC282)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ try {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[141].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalSynFloodFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalSynFloodFromUMC282,
+ optimizeContent(
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "getDdosGlobalSynFloodFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalSynFloodFromUMC"));
+
+ //adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // set the message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message contxt to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ //execute the operation client
+ _operationClient.execute(true);
+
+ org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+ org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+
+ java.lang.Object object = fromOM(_returnEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse.class);
+
+ return (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse) object;
+ } catch (org.apache.axis2.AxisFault f) {
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalSynFloodFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalSynFloodFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalSynFloodFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex, new java.lang.Object[] { messageObject });
+
+ throw new java.rmi.RemoteException(ex.getMessage(), ex);
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } else {
+ throw f;
+ }
+ } finally {
+ if (_messageContext.getTransportOut() != null) {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ }
+ }
+ }
+
+ /**
+ * Auto generated method signature for Asynchronous Invocations
+ *
+ * @see com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningService#startgetDdosGlobalSynFloodFromUMC
+ * @param getDdosGlobalSynFloodFromUMC282
+ */
+ public void startgetDdosGlobalSynFloodFromUMC(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC getDdosGlobalSynFloodFromUMC282,
+ final com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceCallbackHandler callback)
+ throws java.rmi.RemoteException {
+ org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[141].getName());
+ _operationClient.getOptions()
+ .setAction("http://service.ntc.dp.com/AbnormalFlowCleaningServicePortType/getDdosGlobalSynFloodFromUMCRequest");
+ _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+ addPropertyToOperationClient(_operationClient,
+ org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
+ "&");
+
+ // create SOAP envelope with that payload
+ org.apache.axiom.soap.SOAPEnvelope env = null;
+ final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+ //Style is Doc.
+ env = toEnvelope(getFactory(_operationClient.getOptions()
+ .getSoapVersionURI()),
+ getDdosGlobalSynFloodFromUMC282,
+ optimizeContent(
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalSynFloodFromUMC")),
+ new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalSynFloodFromUMC"));
+
+ // adding SOAP soap_headers
+ _serviceClient.addHeadersToEnvelope(env);
+ // create message context with that soap envelope
+ _messageContext.setEnvelope(env);
+
+ // add the message context to the operation client
+ _operationClient.addMessageContext(_messageContext);
+
+ _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+ public void onMessage(
+ org.apache.axis2.context.MessageContext resultContext) {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+
+ java.lang.Object object = fromOM(resultEnv.getBody()
+ .getFirstElement(),
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse.class);
+ callback.receiveResultgetDdosGlobalSynFloodFromUMC((com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse) object);
+ } catch (org.apache.axis2.AxisFault e) {
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(e);
+ }
+ }
+
+ public void onError(java.lang.Exception error) {
+ if (error instanceof org.apache.axis2.AxisFault) {
+ org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+ org.apache.axiom.om.OMElement faultElt = f.getDetail();
+
+ if (faultElt != null) {
+ if (faultExceptionNameMap.containsKey(
+ new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalSynFloodFromUMC"))) {
+ //make the fault by reflection
+ try {
+ java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalSynFloodFromUMC"));
+ java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+ java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);
+ java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+
+ //message class
+ java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(
+ faultElt.getQName(),
+ "getDdosGlobalSynFloodFromUMC"));
+ java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+ java.lang.Object messageObject = fromOM(faultElt,
+ messageClass);
+ java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+ new java.lang.Class[] { messageClass });
+ m.invoke(ex,
+ new java.lang.Object[] { messageObject });
+
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(new java.rmi.RemoteException(
+ ex.getMessage(), ex));
+ } catch (java.lang.ClassCastException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ } catch (java.lang.ClassNotFoundException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ } catch (java.lang.NoSuchMethodException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ } catch (java.lang.reflect.InvocationTargetException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ } catch (java.lang.IllegalAccessException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ } catch (java.lang.InstantiationException e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ } catch (org.apache.axis2.AxisFault e) {
+ // we cannot intantiate the class - throw the original Axis fault
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(f);
+ }
+ } else {
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(error);
+ }
+ }
+
+ public void onFault(
+ org.apache.axis2.context.MessageContext faultContext) {
+ org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+ onError(fault);
+ }
+
+ public void onComplete() {
+ try {
+ _messageContext.getTransportOut().getSender()
+ .cleanup(_messageContext);
+ } catch (org.apache.axis2.AxisFault axisFault) {
+ callback.receiveErrorgetDdosGlobalSynFloodFromUMC(axisFault);
+ }
+ }
+ });
+
+ org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+
+ if ((_operations[141].getMessageReceiver() == null) &&
+ _operationClient.getOptions().isUseSeparateListener()) {
+ _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+ _operations[141].setMessageReceiver(_callbackReceiver);
+ }
+
+ //execute the operation client
+ _operationClient.execute(false);
+ }
+
+ private boolean optimizeContent(javax.xml.namespace.QName opName) {
+ if (opNameArray == null) {
+ return false;
+ }
+
+ for (int i = 0; i < opNameArray.length; i++) {
+ if (opName.equals(opNameArray[i])) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.om.OMElement toOM(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse param,
+ boolean optimizeContent) throws org.apache.axis2.AxisFault {
+ try {
+ return param.getOMElement(com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse.MY_QNAME,
+ org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory,
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC param,
+ boolean optimizeContent, javax.xml.namespace.QName elementQName)
+ throws org.apache.axis2.AxisFault {
+ try {
+ org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+ emptyEnvelope.getBody()
+ .addChild(param.getOMElement(
+ com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC.MY_QNAME,
+ factory));
+
+ return emptyEnvelope;
+ } catch (org.apache.axis2.databinding.ADBException e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ }
+
+ /* methods to provide back word compatibility */
+
+ /**
+ * get the default envelope
+ */
+ private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
+ org.apache.axiom.soap.SOAPFactory factory) {
+ return factory.getDefaultEnvelope();
+ }
+
+ private java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
+ java.lang.Class type) throws org.apache.axis2.AxisFault {
+ try {
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddAnomalyDetectionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtection.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackAndWhiteListProtectionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleAutoStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBlackHoleManualStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddBypassManualTractionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddCompleteAnomalyDetectionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosACProtectionForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosCCuserGroupV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosDnsRetryProtectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipCusProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetSipGloProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriCusProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDdosHttpGetUriGloProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDetectionObjectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsDomainGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSecDomainGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddDnsSipGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintIcmpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintOtherForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintTcpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddFingerprintUdpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetection.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyDetectionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestore.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddOneKeyRestoreResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.AddProtectionObjectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelAnomalyDetectionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtection.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackAndWhiteListProtectionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBlackHoleStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelBypassManualTractionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosACProtectionForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosCCuserGroupV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosDnsRetryProtectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipCusProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetSipGloProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriCusProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDdosHttpGetUriGloProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsDomainGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSecDomainGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelDnsSipGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteCompleteAnomalyDetectionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteDetectionObjectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DeleteProtectionObjectIPRangeForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintIcmpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintOtherForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintTcpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DelFingerprintUdpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.DisableProtectionStrategyTemplateForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GeDnsDomainCustomV4TFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllAnomalyDetectionStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackAndWhiteListFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleAutoStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBlackHoleManualStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllBypassManualTractionStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllCompleteAnomalyDetectionStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevices.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectDevicesResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllDetectionObjectFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevices.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectDevicesResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionObjectFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionStrategyTemplateFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetAnomalyDetectionStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetCompleteAnomalyDetectionStrategyFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosACProtectionFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosCCuserGroupV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosDnsRetryProtectFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalAckPayloadFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpFragFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpLengthFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalIcmpPayloadFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalOtherFragFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalSynFloodFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFlagFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpFragFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpLengthFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalTcpStateFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpFragFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpLengthFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosGlobalUdpPayloadFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipCusProV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetSipGloProV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriCusProV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDdosHttpGetUriGloProV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsDomainGlobalV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainCustomV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSecDomainGlobalV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipCustomV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetDnsSipGlobalV4FromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintIcmpFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintOtherFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintTcpFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.GetFingerprintUdpFromUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.LinkProtectionStrategyTemplateForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModACProtectionForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtection.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackAndWhiteListProtectionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleAutoStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBlackHoleManualStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModBypassManualTractionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosCCuserGroupV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosDnsRetryProtectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipCusProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetSipGloProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriCusProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDdosHttpGetUriGloProV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsDomainGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSecDomainGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipCustomV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModDnsSipGlobalV4ForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintIcmpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintOtherForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintTcpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModFingerprintUdpForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyDetectionObjectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.ModifyProtectionObjectForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalAckPayloadForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpFragForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpLengthForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalIcmpPayloadForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalOtherFragForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalSynFloodForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFlagForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpFragForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpLengthForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalTcpStateForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpFragForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpLengthForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.SetDdosGlobalUdpPayloadForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartAbnormalTaskWithSpecificDeviceForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBlackHoleStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StartBypassManualTractionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopAbnormalTaskWithSpecificDeviceForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBlackHoleStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMC.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+
+ if (com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse.class.equals(
+ type)) {
+ return com.cmcc.hy.phoenix.dptech.AbnormalFlowCleaningServiceStub.StopBypassManualTractionStrategyForUMCResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+ }
+ } catch (java.lang.Exception e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+
+ return null;
+ }
+
+ //http://10.88.77.15/UMC/service/AbnormalFlowCleaningService
+ public static class GetAllBlackHoleManualStrategyFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBlackHoleManualStrategyFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBlackHoleManualStrategyFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBlackHoleManualStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBlackHoleManualStrategyFromUMC object = new GetAllBlackHoleManualStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBlackHoleManualStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBlackHoleManualStrategyFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class NtcRequestResultInfo implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = NtcRequestResultInfo
+ Namespace URI = http://service.ntc.dp.com
+ Namespace Prefix = ns1
+ */
+
+ /**
+ * field for ResultInfo
+ */
+ protected java.lang.String localResultInfo;
+
+ /* 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 localResultInfoTracker = false;
+
+ /**
+ * field for ResultRetVal
+ */
+ protected int localResultRetVal;
+
+ /* 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 localResultRetValTracker = false;
+
+ public boolean isResultInfoSpecified() {
+ return localResultInfoTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getResultInfo() {
+ return localResultInfo;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ResultInfo
+ */
+ public void setResultInfo(java.lang.String param) {
+ localResultInfoTracker = true;
+
+ this.localResultInfo = param;
+ }
+
+ public boolean isResultRetValSpecified() {
+ return localResultRetValTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getResultRetVal() {
+ return localResultRetVal;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ResultRetVal
+ */
+ public void setResultRetVal(int param) {
+ // setting primitive attribute tracker to true
+ localResultRetValTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localResultRetVal = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":NtcRequestResultInfo", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "NtcRequestResultInfo", xmlWriter);
+ }
+ }
+
+ if (localResultInfoTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "resultInfo", xmlWriter);
+
+ if (localResultInfo == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localResultInfo);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localResultRetValTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "resultRetVal", xmlWriter);
+
+ if (localResultRetVal == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "resultRetVal cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localResultRetVal));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 NtcRequestResultInfo parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ NtcRequestResultInfo object = new NtcRequestResultInfo();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"NtcRequestResultInfo".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (NtcRequestResultInfo) 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://service.ntc.dp.com", "resultInfo").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setResultInfo(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://service.ntc.dp.com", "resultRetVal").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "resultRetVal" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setResultRetVal(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setResultRetVal(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsSecDomainGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDnsSecDomainGlobalV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsSecDomainGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsSecDomainGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsSecDomainGlobalV4ForUMCResponse object = new DelDnsSecDomainGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsSecDomainGlobalV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsSecDomainGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSecDomainCustomV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainCustomV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsSecDomainCustomV4FromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSecDomainCustomV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSecDomainCustomV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSecDomainCustomV4FromUMC object = new GetDnsSecDomainCustomV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSecDomainCustomV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSecDomainCustomV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DisableProtectionStrategyTemplateForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":disableProtectionStrategyTemplateForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "disableProtectionStrategyTemplateForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DisableProtectionStrategyTemplateForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DisableProtectionStrategyTemplateForUMCResponse object = new DisableProtectionStrategyTemplateForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"disableProtectionStrategyTemplateForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DisableProtectionStrategyTemplateForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalTcpStateForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalTcpStateForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Chosen
+ */
+ protected java.lang.String localChosen;
+
+ /* 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 localChosenTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Statenable
+ */
+ protected java.lang.String localStatenable;
+
+ /* 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 localStatenableTracker = false;
+
+ public boolean isChosenSpecified() {
+ return localChosenTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getChosen() {
+ return localChosen;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Chosen
+ */
+ public void setChosen(java.lang.String param) {
+ localChosenTracker = true;
+
+ this.localChosen = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isStatenableSpecified() {
+ return localStatenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStatenable() {
+ return localStatenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Statenable
+ */
+ public void setStatenable(java.lang.String param) {
+ localStatenableTracker = true;
+
+ this.localStatenable = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalTcpStateForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalTcpStateForService", xmlWriter);
+ }
+ }
+
+ if (localChosenTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "chosen", xmlWriter);
+
+ if (localChosen == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localChosen);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localStatenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "statenable", xmlWriter);
+
+ if (localStatenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStatenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalTcpStateForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalTcpStateForService object = new DdosGlobalTcpStateForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalTcpStateForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalTcpStateForService) 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://data.ntc.dp.com", "chosen").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setChosen(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "statenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStatenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StartBlackHoleStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBlackHoleStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":startBlackHoleStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "startBlackHoleStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StartBlackHoleStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StartBlackHoleStrategyForUMC object = new StartBlackHoleStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"startBlackHoleStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StartBlackHoleStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddCompleteAnomalyDetectionStrategyForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addCompleteAnomalyDetectionStrategyForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addCompleteAnomalyDetectionStrategyForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddCompleteAnomalyDetectionStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddCompleteAnomalyDetectionStrategyForUMCResponse object = new AddCompleteAnomalyDetectionStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addCompleteAnomalyDetectionStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddCompleteAnomalyDetectionStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalIcmpLengthFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpLengthFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalIcmpLengthFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalIcmpLengthFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalIcmpLengthFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalIcmpLengthFromUMC object = new GetDdosGlobalIcmpLengthFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalIcmpLengthFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalIcmpLengthFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBlackHoleAutoStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleAutoStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for DetectName
+ */
+ protected java.lang.String localDetectName;
+
+ /**
+ * field for DetectMode
+ */
+ protected int localDetectMode;
+
+ /**
+ * field for BlackHoleThreshold
+ */
+ protected int localBlackHoleThreshold;
+
+ /**
+ * field for BlackHoleTime
+ */
+ protected int localBlackHoleTime;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectName() {
+ return localDetectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectName
+ */
+ public void setDetectName(java.lang.String param) {
+ this.localDetectName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDetectMode() {
+ return localDetectMode;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectMode
+ */
+ public void setDetectMode(int param) {
+ this.localDetectMode = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBlackHoleThreshold() {
+ return localBlackHoleThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleThreshold
+ */
+ public void setBlackHoleThreshold(int param) {
+ this.localBlackHoleThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBlackHoleTime() {
+ return localBlackHoleTime;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleTime
+ */
+ public void setBlackHoleTime(int param) {
+ this.localBlackHoleTime = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addBlackHoleAutoStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBlackHoleAutoStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectName", xmlWriter);
+
+ if (localDetectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectMode", xmlWriter);
+
+ if (localDetectMode == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "detectMode cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDetectMode));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "blackHoleThreshold", xmlWriter);
+
+ if (localBlackHoleThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "blackHoleThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBlackHoleThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "blackHoleTime", xmlWriter);
+
+ if (localBlackHoleTime == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "blackHoleTime cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBlackHoleTime));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBlackHoleAutoStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBlackHoleAutoStrategyForUMC object = new AddBlackHoleAutoStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBlackHoleAutoStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBlackHoleAutoStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectMode").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "detectMode" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectMode(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "blackHoleThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "blackHoleThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBlackHoleThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "blackHoleTime").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "blackHoleTime" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBlackHoleTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetSipCusProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipCusProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Sip
+ */
+ protected java.lang.String localSip;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSip() {
+ return localSip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Sip
+ */
+ public void setSip(java.lang.String param) {
+ this.localSip = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDdosHttpGetSipCusProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetSipCusProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sip", xmlWriter);
+
+ if (localSip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSip);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetSipCusProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetSipCusProV4ForUMC object = new ModDdosHttpGetSipCusProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetSipCusProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetSipCusProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetSipCusProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipCusProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addDdosHttpGetSipCusProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetSipCusProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetSipCusProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetSipCusProV4ForUMCResponse object = new AddDdosHttpGetSipCusProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetSipCusProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetSipCusProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosHttpGetSipGloProV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipGloProV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosHttpGetSipGloProV4FromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosHttpGetSipGloProV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosHttpGetSipGloProV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosHttpGetSipGloProV4FromUMC object = new GetDdosHttpGetSipGloProV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosHttpGetSipGloProV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosHttpGetSipGloProV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetCompleteAnomalyDetectionStrategyFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMC", "ns1");
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ this.localStrategyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ this.localDirection = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getCompleteAnomalyDetectionStrategyFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getCompleteAnomalyDetectionStrategyFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetCompleteAnomalyDetectionStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetCompleteAnomalyDetectionStrategyFromUMC object = new GetCompleteAnomalyDetectionStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getCompleteAnomalyDetectionStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetCompleteAnomalyDetectionStrategyFromUMC) 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://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsDomainCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainCustomV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Domain
+ */
+ protected java.lang.String localDomain;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDnsDomainCustomV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsDomainCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "domain", xmlWriter);
+
+ if (localDomain == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDomain);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsDomainCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsDomainCustomV4ForUMC object = new ModDnsDomainCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsDomainCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsDomainCustomV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "domain").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDomain(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsSipGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDnsSipGlobalV4ForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsSipGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsSipGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsSipGlobalV4ForUMCResponse object = new ModDnsSipGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsSipGlobalV4ForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsSipGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosHttpGetUriCusProV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosHttpGetUriCusProV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for URI
+ */
+ protected java.lang.String localURI;
+
+ /* 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 localURITracker = false;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isURISpecified() {
+ return localURITracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getURI() {
+ return localURI;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param URI
+ */
+ public void setURI(java.lang.String param) {
+ localURITracker = true;
+
+ this.localURI = param;
+ }
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosHttpGetUriCusProV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosHttpGetUriCusProV4ForService", xmlWriter);
+ }
+ }
+
+ if (localURITracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "URI", xmlWriter);
+
+ if (localURI == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localURI);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosHttpGetUriCusProV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosHttpGetUriCusProV4ForService object = new DdosHttpGetUriCusProV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosHttpGetUriCusProV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosHttpGetUriCusProV4ForService) 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://data.ntc.dp.com", "URI").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setURI(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetFingerprintIcmpFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintIcmpFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getFingerprintIcmpFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getFingerprintIcmpFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetFingerprintIcmpFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetFingerprintIcmpFromUMC object = new GetFingerprintIcmpFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getFingerprintIcmpFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetFingerprintIcmpFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDdosHttpGetUriCusProV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDdosHttpGetUriCusProV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DdosHttpGetUriCusProV4ForService
+ * This was an Array!
+ */
+ protected DdosHttpGetUriCusProV4ForService[] localDdosHttpGetUriCusProV4ForService;
+
+ /* 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 localDdosHttpGetUriCusProV4ForServiceTracker = false;
+
+ public boolean isDdosHttpGetUriCusProV4ForServiceSpecified() {
+ return localDdosHttpGetUriCusProV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DdosHttpGetUriCusProV4ForService[]
+ */
+ public DdosHttpGetUriCusProV4ForService[] getDdosHttpGetUriCusProV4ForService() {
+ return localDdosHttpGetUriCusProV4ForService;
+ }
+
+ /**
+ * validate the array for DdosHttpGetUriCusProV4ForService
+ */
+ protected void validateDdosHttpGetUriCusProV4ForService(
+ DdosHttpGetUriCusProV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DdosHttpGetUriCusProV4ForService
+ */
+ public void setDdosHttpGetUriCusProV4ForService(
+ DdosHttpGetUriCusProV4ForService[] param) {
+ validateDdosHttpGetUriCusProV4ForService(param);
+
+ localDdosHttpGetUriCusProV4ForServiceTracker = true;
+
+ this.localDdosHttpGetUriCusProV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DdosHttpGetUriCusProV4ForService
+ */
+ public void addDdosHttpGetUriCusProV4ForService(
+ DdosHttpGetUriCusProV4ForService param) {
+ if (localDdosHttpGetUriCusProV4ForService == null) {
+ localDdosHttpGetUriCusProV4ForService = new DdosHttpGetUriCusProV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDdosHttpGetUriCusProV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDdosHttpGetUriCusProV4ForService);
+ list.add(param);
+ this.localDdosHttpGetUriCusProV4ForService = (DdosHttpGetUriCusProV4ForService[]) list.toArray(new DdosHttpGetUriCusProV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDdosHttpGetUriCusProV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDdosHttpGetUriCusProV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDdosHttpGetUriCusProV4ForServiceTracker) {
+ if (localDdosHttpGetUriCusProV4ForService != null) {
+ for (int i = 0;
+ i < localDdosHttpGetUriCusProV4ForService.length;
+ i++) {
+ if (localDdosHttpGetUriCusProV4ForService[i] != null) {
+ localDdosHttpGetUriCusProV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DdosHttpGetUriCusProV4ForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosHttpGetUriCusProV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosHttpGetUriCusProV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDdosHttpGetUriCusProV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDdosHttpGetUriCusProV4ForService object = new ArrayOfDdosHttpGetUriCusProV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDdosHttpGetUriCusProV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDdosHttpGetUriCusProV4ForService) 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://data.ntc.dp.com",
+ "DdosHttpGetUriCusProV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosHttpGetUriCusProV4ForService.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://data.ntc.dp.com",
+ "DdosHttpGetUriCusProV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosHttpGetUriCusProV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDdosHttpGetUriCusProV4ForService((DdosHttpGetUriCusProV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DdosHttpGetUriCusProV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDnsSipCustomV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDnsSipCustomV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DnsSipCustomV4ForService
+ * This was an Array!
+ */
+ protected DnsSipCustomV4ForService[] localDnsSipCustomV4ForService;
+
+ /* 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 localDnsSipCustomV4ForServiceTracker = false;
+
+ public boolean isDnsSipCustomV4ForServiceSpecified() {
+ return localDnsSipCustomV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DnsSipCustomV4ForService[]
+ */
+ public DnsSipCustomV4ForService[] getDnsSipCustomV4ForService() {
+ return localDnsSipCustomV4ForService;
+ }
+
+ /**
+ * validate the array for DnsSipCustomV4ForService
+ */
+ protected void validateDnsSipCustomV4ForService(
+ DnsSipCustomV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsSipCustomV4ForService
+ */
+ public void setDnsSipCustomV4ForService(
+ DnsSipCustomV4ForService[] param) {
+ validateDnsSipCustomV4ForService(param);
+
+ localDnsSipCustomV4ForServiceTracker = true;
+
+ this.localDnsSipCustomV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DnsSipCustomV4ForService
+ */
+ public void addDnsSipCustomV4ForService(DnsSipCustomV4ForService param) {
+ if (localDnsSipCustomV4ForService == null) {
+ localDnsSipCustomV4ForService = new DnsSipCustomV4ForService[] { };
+ }
+
+ //update the setting tracker
+ localDnsSipCustomV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDnsSipCustomV4ForService);
+ list.add(param);
+ this.localDnsSipCustomV4ForService = (DnsSipCustomV4ForService[]) list.toArray(new DnsSipCustomV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfDnsSipCustomV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDnsSipCustomV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDnsSipCustomV4ForServiceTracker) {
+ if (localDnsSipCustomV4ForService != null) {
+ for (int i = 0; i < localDnsSipCustomV4ForService.length;
+ i++) {
+ if (localDnsSipCustomV4ForService[i] != null) {
+ localDnsSipCustomV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DnsSipCustomV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSipCustomV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSipCustomV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDnsSipCustomV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDnsSipCustomV4ForService object = new ArrayOfDnsSipCustomV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDnsSipCustomV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDnsSipCustomV4ForService) 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://data.ntc.dp.com",
+ "DnsSipCustomV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSipCustomV4ForService.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://data.ntc.dp.com",
+ "DnsSipCustomV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSipCustomV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDnsSipCustomV4ForService((DnsSipCustomV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DnsSipCustomV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfFingerprintUdpForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfFingerprintUdpForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for FingerprintUdpForService
+ * This was an Array!
+ */
+ protected FingerprintUdpForService[] localFingerprintUdpForService;
+
+ /* 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 localFingerprintUdpForServiceTracker = false;
+
+ public boolean isFingerprintUdpForServiceSpecified() {
+ return localFingerprintUdpForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return FingerprintUdpForService[]
+ */
+ public FingerprintUdpForService[] getFingerprintUdpForService() {
+ return localFingerprintUdpForService;
+ }
+
+ /**
+ * validate the array for FingerprintUdpForService
+ */
+ protected void validateFingerprintUdpForService(
+ FingerprintUdpForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FingerprintUdpForService
+ */
+ public void setFingerprintUdpForService(
+ FingerprintUdpForService[] param) {
+ validateFingerprintUdpForService(param);
+
+ localFingerprintUdpForServiceTracker = true;
+
+ this.localFingerprintUdpForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param FingerprintUdpForService
+ */
+ public void addFingerprintUdpForService(FingerprintUdpForService param) {
+ if (localFingerprintUdpForService == null) {
+ localFingerprintUdpForService = new FingerprintUdpForService[] { };
+ }
+
+ //update the setting tracker
+ localFingerprintUdpForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFingerprintUdpForService);
+ list.add(param);
+ this.localFingerprintUdpForService = (FingerprintUdpForService[]) list.toArray(new FingerprintUdpForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfFingerprintUdpForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfFingerprintUdpForService", xmlWriter);
+ }
+ }
+
+ if (localFingerprintUdpForServiceTracker) {
+ if (localFingerprintUdpForService != null) {
+ for (int i = 0; i < localFingerprintUdpForService.length;
+ i++) {
+ if (localFingerprintUdpForService[i] != null) {
+ localFingerprintUdpForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "FingerprintUdpForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintUdpForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintUdpForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfFingerprintUdpForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfFingerprintUdpForService object = new ArrayOfFingerprintUdpForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfFingerprintUdpForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfFingerprintUdpForService) 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://data.ntc.dp.com",
+ "FingerprintUdpForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintUdpForService.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://data.ntc.dp.com",
+ "FingerprintUdpForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintUdpForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setFingerprintUdpForService((FingerprintUdpForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ FingerprintUdpForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetUriGloProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriGloProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosHttpGetUriGloProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetUriGloProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetUriGloProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetUriGloProV4ForUMC object = new AddDdosHttpGetUriGloProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetUriGloProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetUriGloProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllProtectDevicesResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectDevicesResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected java.lang.String localOut;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(java.lang.String param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getAllProtectDevicesResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllProtectDevicesResponse", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "out", xmlWriter);
+
+ if (localOut == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localOut);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllProtectDevicesResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllProtectDevicesResponse object = new GetAllProtectDevicesResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllProtectDevicesResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllProtectDevicesResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setOut(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintOtherForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintOtherForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintOtherForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintOtherForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintOtherForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintOtherForUMC object = new ModFingerprintOtherForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintOtherForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintOtherForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalIcmpFragFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpFragFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalIcmpFragForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalIcmpFragForService
+ */
+ public DdosGlobalIcmpFragForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalIcmpFragForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalIcmpFragFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalIcmpFragFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalIcmpFragFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalIcmpFragFromUMCResponse object = new GetDdosGlobalIcmpFragFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalIcmpFragFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalIcmpFragFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalIcmpFragForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosCCuserGroupV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosCCuserGroupV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosCCuserGroupV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosCCuserGroupV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosCCuserGroupV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosCCuserGroupV4ForUMC object = new AddDdosCCuserGroupV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosCCuserGroupV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosCCuserGroupV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AnomalyDetectionStrategy implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = AnomalyDetectionStrategy
+ Namespace URI = http://service.ntc.dp.com
+ Namespace Prefix = ns1
+ */
+
+ /**
+ * field for AckFloodThreshold
+ */
+ protected int localAckFloodThreshold;
+
+ /* 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 localAckFloodThresholdTracker = false;
+
+ /**
+ * field for AckFloodThresholdType
+ */
+ protected int localAckFloodThresholdType;
+
+ /* 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 localAckFloodThresholdTypeTracker = false;
+
+ /**
+ * field for BandWidthThreshold
+ */
+ protected int localBandWidthThreshold;
+
+ /* 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 localBandWidthThresholdTracker = false;
+
+ /**
+ * field for CcFloodThreshold
+ */
+ protected int localCcFloodThreshold;
+
+ /* 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 localCcFloodThresholdTracker = false;
+
+ /**
+ * field for CcFloodThresholdType
+ */
+ protected int localCcFloodThresholdType;
+
+ /* 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 localCcFloodThresholdTypeTracker = false;
+
+ /**
+ * field for DetectionObjName
+ */
+ protected java.lang.String localDetectionObjName;
+
+ /* 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 localDetectionObjNameTracker = false;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /* 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 localDirectionTracker = false;
+
+ /**
+ * field for DnsFloodThreshold
+ */
+ protected int localDnsFloodThreshold;
+
+ /* 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 localDnsFloodThresholdTracker = false;
+
+ /**
+ * field for DnsFloodThresholdType
+ */
+ protected int localDnsFloodThresholdType;
+
+ /* 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 localDnsFloodThresholdTypeTracker = false;
+
+ /**
+ * field for FinFloodThreshold
+ */
+ protected int localFinFloodThreshold;
+
+ /* 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 localFinFloodThresholdTracker = false;
+
+ /**
+ * field for FinFloodThresholdType
+ */
+ protected int localFinFloodThresholdType;
+
+ /* 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 localFinFloodThresholdTypeTracker = false;
+
+ /**
+ * field for HttpFloodThreshold
+ */
+ protected int localHttpFloodThreshold;
+
+ /* 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 localHttpFloodThresholdTracker = false;
+
+ /**
+ * field for HttpFloodThresholdType
+ */
+ protected int localHttpFloodThresholdType;
+
+ /* 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 localHttpFloodThresholdTypeTracker = false;
+
+ /**
+ * field for IcmpFloodThreshold
+ */
+ protected int localIcmpFloodThreshold;
+
+ /* 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 localIcmpFloodThresholdTracker = false;
+
+ /**
+ * field for IcmpFloodThresholdType
+ */
+ protected int localIcmpFloodThresholdType;
+
+ /* 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 localIcmpFloodThresholdTypeTracker = false;
+
+ /**
+ * field for IpFragmentFloodThreshold
+ */
+ protected int localIpFragmentFloodThreshold;
+
+ /* 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 localIpFragmentFloodThresholdTracker = false;
+
+ /**
+ * field for IpFragmentFloodThresholdType
+ */
+ protected int localIpFragmentFloodThresholdType;
+
+ /* 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 localIpFragmentFloodThresholdTypeTracker = false;
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /* 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 localStrategyNameTracker = false;
+
+ /**
+ * field for SynAckFloodThreshold
+ */
+ protected int localSynAckFloodThreshold;
+
+ /* 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 localSynAckFloodThresholdTracker = false;
+
+ /**
+ * field for SynAckFloodThresholdType
+ */
+ protected int localSynAckFloodThresholdType;
+
+ /* 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 localSynAckFloodThresholdTypeTracker = false;
+
+ /**
+ * field for SynFloodThreshold
+ */
+ protected int localSynFloodThreshold;
+
+ /* 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 localSynFloodThresholdTracker = false;
+
+ /**
+ * field for SynFloodThresholdType
+ */
+ protected int localSynFloodThresholdType;
+
+ /* 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 localSynFloodThresholdTypeTracker = false;
+
+ /**
+ * field for UdpFloodThreshold
+ */
+ protected int localUdpFloodThreshold;
+
+ /* 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 localUdpFloodThresholdTracker = false;
+
+ /**
+ * field for UdpFloodThresholdType
+ */
+ protected int localUdpFloodThresholdType;
+
+ /* 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 localUdpFloodThresholdTypeTracker = false;
+
+ public boolean isAckFloodThresholdSpecified() {
+ return localAckFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAckFloodThreshold() {
+ return localAckFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AckFloodThreshold
+ */
+ public void setAckFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localAckFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localAckFloodThreshold = param;
+ }
+
+ public boolean isAckFloodThresholdTypeSpecified() {
+ return localAckFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAckFloodThresholdType() {
+ return localAckFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AckFloodThresholdType
+ */
+ public void setAckFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localAckFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localAckFloodThresholdType = param;
+ }
+
+ public boolean isBandWidthThresholdSpecified() {
+ return localBandWidthThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBandWidthThreshold() {
+ return localBandWidthThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BandWidthThreshold
+ */
+ public void setBandWidthThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localBandWidthThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localBandWidthThreshold = param;
+ }
+
+ public boolean isCcFloodThresholdSpecified() {
+ return localCcFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCcFloodThreshold() {
+ return localCcFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CcFloodThreshold
+ */
+ public void setCcFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localCcFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localCcFloodThreshold = param;
+ }
+
+ public boolean isCcFloodThresholdTypeSpecified() {
+ return localCcFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCcFloodThresholdType() {
+ return localCcFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CcFloodThresholdType
+ */
+ public void setCcFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localCcFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localCcFloodThresholdType = param;
+ }
+
+ public boolean isDetectionObjNameSpecified() {
+ return localDetectionObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionObjName() {
+ return localDetectionObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionObjName
+ */
+ public void setDetectionObjName(java.lang.String param) {
+ localDetectionObjNameTracker = true;
+
+ this.localDetectionObjName = param;
+ }
+
+ public boolean isDirectionSpecified() {
+ return localDirectionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ // setting primitive attribute tracker to true
+ localDirectionTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localDirection = param;
+ }
+
+ public boolean isDnsFloodThresholdSpecified() {
+ return localDnsFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDnsFloodThreshold() {
+ return localDnsFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsFloodThreshold
+ */
+ public void setDnsFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localDnsFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localDnsFloodThreshold = param;
+ }
+
+ public boolean isDnsFloodThresholdTypeSpecified() {
+ return localDnsFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDnsFloodThresholdType() {
+ return localDnsFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsFloodThresholdType
+ */
+ public void setDnsFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localDnsFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localDnsFloodThresholdType = param;
+ }
+
+ public boolean isFinFloodThresholdSpecified() {
+ return localFinFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getFinFloodThreshold() {
+ return localFinFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FinFloodThreshold
+ */
+ public void setFinFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localFinFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localFinFloodThreshold = param;
+ }
+
+ public boolean isFinFloodThresholdTypeSpecified() {
+ return localFinFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getFinFloodThresholdType() {
+ return localFinFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FinFloodThresholdType
+ */
+ public void setFinFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localFinFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localFinFloodThresholdType = param;
+ }
+
+ public boolean isHttpFloodThresholdSpecified() {
+ return localHttpFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getHttpFloodThreshold() {
+ return localHttpFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param HttpFloodThreshold
+ */
+ public void setHttpFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localHttpFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localHttpFloodThreshold = param;
+ }
+
+ public boolean isHttpFloodThresholdTypeSpecified() {
+ return localHttpFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getHttpFloodThresholdType() {
+ return localHttpFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param HttpFloodThresholdType
+ */
+ public void setHttpFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localHttpFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localHttpFloodThresholdType = param;
+ }
+
+ public boolean isIcmpFloodThresholdSpecified() {
+ return localIcmpFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIcmpFloodThreshold() {
+ return localIcmpFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IcmpFloodThreshold
+ */
+ public void setIcmpFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localIcmpFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localIcmpFloodThreshold = param;
+ }
+
+ public boolean isIcmpFloodThresholdTypeSpecified() {
+ return localIcmpFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIcmpFloodThresholdType() {
+ return localIcmpFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IcmpFloodThresholdType
+ */
+ public void setIcmpFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localIcmpFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localIcmpFloodThresholdType = param;
+ }
+
+ public boolean isIpFragmentFloodThresholdSpecified() {
+ return localIpFragmentFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpFragmentFloodThreshold() {
+ return localIpFragmentFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpFragmentFloodThreshold
+ */
+ public void setIpFragmentFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localIpFragmentFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localIpFragmentFloodThreshold = param;
+ }
+
+ public boolean isIpFragmentFloodThresholdTypeSpecified() {
+ return localIpFragmentFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpFragmentFloodThresholdType() {
+ return localIpFragmentFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpFragmentFloodThresholdType
+ */
+ public void setIpFragmentFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localIpFragmentFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localIpFragmentFloodThresholdType = param;
+ }
+
+ public boolean isStrategyNameSpecified() {
+ return localStrategyNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ localStrategyNameTracker = true;
+
+ this.localStrategyName = param;
+ }
+
+ public boolean isSynAckFloodThresholdSpecified() {
+ return localSynAckFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynAckFloodThreshold() {
+ return localSynAckFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynAckFloodThreshold
+ */
+ public void setSynAckFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localSynAckFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localSynAckFloodThreshold = param;
+ }
+
+ public boolean isSynAckFloodThresholdTypeSpecified() {
+ return localSynAckFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynAckFloodThresholdType() {
+ return localSynAckFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynAckFloodThresholdType
+ */
+ public void setSynAckFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localSynAckFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localSynAckFloodThresholdType = param;
+ }
+
+ public boolean isSynFloodThresholdSpecified() {
+ return localSynFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynFloodThreshold() {
+ return localSynFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynFloodThreshold
+ */
+ public void setSynFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localSynFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localSynFloodThreshold = param;
+ }
+
+ public boolean isSynFloodThresholdTypeSpecified() {
+ return localSynFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynFloodThresholdType() {
+ return localSynFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynFloodThresholdType
+ */
+ public void setSynFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localSynFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localSynFloodThresholdType = param;
+ }
+
+ public boolean isUdpFloodThresholdSpecified() {
+ return localUdpFloodThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getUdpFloodThreshold() {
+ return localUdpFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param UdpFloodThreshold
+ */
+ public void setUdpFloodThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localUdpFloodThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localUdpFloodThreshold = param;
+ }
+
+ public boolean isUdpFloodThresholdTypeSpecified() {
+ return localUdpFloodThresholdTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getUdpFloodThresholdType() {
+ return localUdpFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param UdpFloodThresholdType
+ */
+ public void setUdpFloodThresholdType(int param) {
+ // setting primitive attribute tracker to true
+ localUdpFloodThresholdTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localUdpFloodThresholdType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":AnomalyDetectionStrategy", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "AnomalyDetectionStrategy", xmlWriter);
+ }
+ }
+
+ if (localAckFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ackFloodThreshold",
+ xmlWriter);
+
+ if (localAckFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ackFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAckFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localAckFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ackFloodThresholdType",
+ xmlWriter);
+
+ if (localAckFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ackFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAckFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localBandWidthThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "bandWidthThreshold",
+ xmlWriter);
+
+ if (localBandWidthThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "bandWidthThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBandWidthThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCcFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ccFloodThreshold", xmlWriter);
+
+ if (localCcFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ccFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCcFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCcFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ccFloodThresholdType",
+ xmlWriter);
+
+ if (localCcFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ccFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCcFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDetectionObjNameTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionObjName", xmlWriter);
+
+ if (localDetectionObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDirectionTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDnsFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dnsFloodThreshold",
+ xmlWriter);
+
+ if (localDnsFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "dnsFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDnsFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDnsFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dnsFloodThresholdType",
+ xmlWriter);
+
+ if (localDnsFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "dnsFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDnsFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localFinFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finFloodThreshold",
+ xmlWriter);
+
+ if (localFinFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "finFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localFinFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localFinFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finFloodThresholdType",
+ xmlWriter);
+
+ if (localFinFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "finFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localFinFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localHttpFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "httpFloodThreshold",
+ xmlWriter);
+
+ if (localHttpFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "httpFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localHttpFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localHttpFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "httpFloodThresholdType",
+ xmlWriter);
+
+ if (localHttpFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "httpFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localHttpFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIcmpFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpFloodThreshold",
+ xmlWriter);
+
+ if (localIcmpFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "icmpFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIcmpFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIcmpFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpFloodThresholdType",
+ xmlWriter);
+
+ if (localIcmpFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "icmpFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIcmpFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpFragmentFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipFragmentFloodThreshold",
+ xmlWriter);
+
+ if (localIpFragmentFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipFragmentFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpFragmentFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpFragmentFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace,
+ "ipFragmentFloodThresholdType", xmlWriter);
+
+ if (localIpFragmentFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipFragmentFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpFragmentFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localStrategyNameTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSynAckFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synAckFloodThreshold",
+ xmlWriter);
+
+ if (localSynAckFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synAckFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynAckFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSynAckFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synAckFloodThresholdType",
+ xmlWriter);
+
+ if (localSynAckFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synAckFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynAckFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSynFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synFloodThreshold",
+ xmlWriter);
+
+ if (localSynFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSynFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synFloodThresholdType",
+ xmlWriter);
+
+ if (localSynFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localUdpFloodThresholdTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "udpFloodThreshold",
+ xmlWriter);
+
+ if (localUdpFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "udpFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localUdpFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localUdpFloodThresholdTypeTracker) {
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "udpFloodThresholdType",
+ xmlWriter);
+
+ if (localUdpFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "udpFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localUdpFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AnomalyDetectionStrategy parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AnomalyDetectionStrategy object = new AnomalyDetectionStrategy();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"AnomalyDetectionStrategy".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AnomalyDetectionStrategy) 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://service.ntc.dp.com", "ackFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ackFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAckFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setAckFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ackFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ackFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAckFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setAckFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "bandWidthThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "bandWidthThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBandWidthThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setBandWidthThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ccFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ccFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCcFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setCcFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ccFloodThresholdType").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ccFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCcFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setCcFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectionObjName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setDirection(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dnsFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "dnsFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDnsFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setDnsFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "dnsFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "dnsFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDnsFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setDnsFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "finFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "finFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setFinFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setFinFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "finFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "finFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setFinFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setFinFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "httpFloodThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "httpFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setHttpFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setHttpFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "httpFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "httpFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setHttpFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setHttpFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "icmpFloodThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "icmpFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setIcmpFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "icmpFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "icmpFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setIcmpFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ipFragmentFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipFragmentFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpFragmentFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setIpFragmentFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ipFragmentFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " +
+ "ipFragmentFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpFragmentFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setIpFragmentFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://service.ntc.dp.com",
+ "synAckFloodThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synAckFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynAckFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setSynAckFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "synAckFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synAckFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynAckFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setSynAckFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setSynFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "synFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setSynFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "udpFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "udpFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setUdpFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setUdpFloodThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "udpFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "udpFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setUdpFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setUdpFloodThresholdType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosHttpGetUriGloProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriGloProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDdosHttpGetUriGloProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosHttpGetUriGloProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosHttpGetUriGloProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosHttpGetUriGloProV4ForUMCResponse object = new DelDdosHttpGetUriGloProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosHttpGetUriGloProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosHttpGetUriGloProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllProtectionStrategyTemplateFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionStrategyTemplateFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllProtectionStrategyTemplateFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllProtectionStrategyTemplateFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllProtectionStrategyTemplateFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllProtectionStrategyTemplateFromUMC object = new GetAllProtectionStrategyTemplateFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllProtectionStrategyTemplateFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllProtectionStrategyTemplateFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBlackAndWhiteListFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackAndWhiteListFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfBlackAndWhiteListDataForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfBlackAndWhiteListDataForService
+ */
+ public ArrayOfBlackAndWhiteListDataForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfBlackAndWhiteListDataForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBlackAndWhiteListFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBlackAndWhiteListFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBlackAndWhiteListFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBlackAndWhiteListFromUMCResponse object = new GetAllBlackAndWhiteListFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBlackAndWhiteListFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBlackAndWhiteListFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfBlackAndWhiteListDataForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalIcmpLengthForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalIcmpLengthForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Lengthenable
+ */
+ protected java.lang.String localLengthenable;
+
+ /* 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 localLengthenableTracker = false;
+
+ /**
+ * field for Maxlength
+ */
+ protected java.lang.String localMaxlength;
+
+ /* 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 localMaxlengthTracker = false;
+
+ /**
+ * field for Minlength
+ */
+ protected java.lang.String localMinlength;
+
+ /* 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 localMinlengthTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ public boolean isLengthenableSpecified() {
+ return localLengthenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getLengthenable() {
+ return localLengthenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Lengthenable
+ */
+ public void setLengthenable(java.lang.String param) {
+ localLengthenableTracker = true;
+
+ this.localLengthenable = param;
+ }
+
+ public boolean isMaxlengthSpecified() {
+ return localMaxlengthTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMaxlength() {
+ return localMaxlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Maxlength
+ */
+ public void setMaxlength(java.lang.String param) {
+ localMaxlengthTracker = true;
+
+ this.localMaxlength = param;
+ }
+
+ public boolean isMinlengthSpecified() {
+ return localMinlengthTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMinlength() {
+ return localMinlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Minlength
+ */
+ public void setMinlength(java.lang.String param) {
+ localMinlengthTracker = true;
+
+ this.localMinlength = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalIcmpLengthForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalIcmpLengthForService", xmlWriter);
+ }
+ }
+
+ if (localLengthenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "lengthenable", xmlWriter);
+
+ if (localLengthenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localLengthenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMaxlengthTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "maxlength", xmlWriter);
+
+ if (localMaxlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMaxlength);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMinlengthTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "minlength", xmlWriter);
+
+ if (localMinlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMinlength);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalIcmpLengthForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalIcmpLengthForService object = new DdosGlobalIcmpLengthForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalIcmpLengthForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalIcmpLengthForService) 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://data.ntc.dp.com", "lengthenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setLengthenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "maxlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMaxlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "minlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMinlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSipGlobalV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipGlobalV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsSipGlobalV4FromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSipGlobalV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSipGlobalV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSipGlobalV4FromUMC object = new GetDnsSipGlobalV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSipGlobalV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSipGlobalV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosCCuserGroupV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosCCuserGroupV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosCCuserGroupV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosCCuserGroupV4ForService", xmlWriter);
+ }
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosCCuserGroupV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosCCuserGroupV4ForService object = new DdosCCuserGroupV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosCCuserGroupV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosCCuserGroupV4ForService) 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDetectionObjectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDetectionObjectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDetectionObjectForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDetectionObjectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDetectionObjectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDetectionObjectForUMCResponse object = new AddDetectionObjectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDetectionObjectForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDetectionObjectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsSipGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDnsSipGlobalV4ForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsSipGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsSipGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsSipGlobalV4ForUMCResponse object = new DelDnsSipGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsSipGlobalV4ForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsSipGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalOtherFragFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalOtherFragFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalOtherFragForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalOtherFragForService
+ */
+ public DdosGlobalOtherFragForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalOtherFragForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalOtherFragFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalOtherFragFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalOtherFragFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalOtherFragFromUMCResponse object = new GetDdosGlobalOtherFragFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalOtherFragFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalOtherFragFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalOtherFragForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosACProtectionForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosACProtectionForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for AcDip
+ */
+ protected java.lang.String localAcDip;
+
+ /* 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 localAcDipTracker = false;
+
+ /**
+ * field for AcDmask
+ */
+ protected java.lang.String localAcDmask;
+
+ /* 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 localAcDmaskTracker = false;
+
+ /**
+ * field for AcSip
+ */
+ protected java.lang.String localAcSip;
+
+ /* 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 localAcSipTracker = false;
+
+ /**
+ * field for AcSmask
+ */
+ protected java.lang.String localAcSmask;
+
+ /* 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 localAcSmaskTracker = false;
+
+ /**
+ * field for DstPortMax
+ */
+ protected java.lang.String localDstPortMax;
+
+ /* 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 localDstPortMaxTracker = false;
+
+ /**
+ * field for DstPortMin
+ */
+ protected java.lang.String localDstPortMin;
+
+ /* 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 localDstPortMinTracker = false;
+
+ /**
+ * field for EndLocation
+ */
+ protected java.lang.String localEndLocation;
+
+ /* 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 localEndLocationTracker = false;
+
+ /**
+ * field for FixString
+ */
+ protected java.lang.String localFixString;
+
+ /* 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 localFixStringTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protocol
+ */
+ protected java.lang.String localProtocol;
+
+ /* 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 localProtocolTracker = false;
+
+ /**
+ * field for RegularExpression
+ */
+ protected java.lang.String localRegularExpression;
+
+ /* 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 localRegularExpressionTracker = false;
+
+ /**
+ * field for SrcPortMax
+ */
+ protected java.lang.String localSrcPortMax;
+
+ /* 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 localSrcPortMaxTracker = false;
+
+ /**
+ * field for SrcPortMin
+ */
+ protected java.lang.String localSrcPortMin;
+
+ /* 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 localSrcPortMinTracker = false;
+
+ /**
+ * field for StartLocation
+ */
+ protected java.lang.String localStartLocation;
+
+ /* 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 localStartLocationTracker = false;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /* 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 localThresholdTracker = false;
+
+ public boolean isAcDipSpecified() {
+ return localAcDipTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcDip() {
+ return localAcDip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcDip
+ */
+ public void setAcDip(java.lang.String param) {
+ localAcDipTracker = true;
+
+ this.localAcDip = param;
+ }
+
+ public boolean isAcDmaskSpecified() {
+ return localAcDmaskTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcDmask() {
+ return localAcDmask;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcDmask
+ */
+ public void setAcDmask(java.lang.String param) {
+ localAcDmaskTracker = true;
+
+ this.localAcDmask = param;
+ }
+
+ public boolean isAcSipSpecified() {
+ return localAcSipTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcSip() {
+ return localAcSip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcSip
+ */
+ public void setAcSip(java.lang.String param) {
+ localAcSipTracker = true;
+
+ this.localAcSip = param;
+ }
+
+ public boolean isAcSmaskSpecified() {
+ return localAcSmaskTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcSmask() {
+ return localAcSmask;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcSmask
+ */
+ public void setAcSmask(java.lang.String param) {
+ localAcSmaskTracker = true;
+
+ this.localAcSmask = param;
+ }
+
+ public boolean isDstPortMaxSpecified() {
+ return localDstPortMaxTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDstPortMax() {
+ return localDstPortMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DstPortMax
+ */
+ public void setDstPortMax(java.lang.String param) {
+ localDstPortMaxTracker = true;
+
+ this.localDstPortMax = param;
+ }
+
+ public boolean isDstPortMinSpecified() {
+ return localDstPortMinTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDstPortMin() {
+ return localDstPortMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DstPortMin
+ */
+ public void setDstPortMin(java.lang.String param) {
+ localDstPortMinTracker = true;
+
+ this.localDstPortMin = param;
+ }
+
+ public boolean isEndLocationSpecified() {
+ return localEndLocationTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEndLocation() {
+ return localEndLocation;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param EndLocation
+ */
+ public void setEndLocation(java.lang.String param) {
+ localEndLocationTracker = true;
+
+ this.localEndLocation = param;
+ }
+
+ public boolean isFixStringSpecified() {
+ return localFixStringTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFixString() {
+ return localFixString;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FixString
+ */
+ public void setFixString(java.lang.String param) {
+ localFixStringTracker = true;
+
+ this.localFixString = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtocolSpecified() {
+ return localProtocolTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtocol() {
+ return localProtocol;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protocol
+ */
+ public void setProtocol(java.lang.String param) {
+ localProtocolTracker = true;
+
+ this.localProtocol = param;
+ }
+
+ public boolean isRegularExpressionSpecified() {
+ return localRegularExpressionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getRegularExpression() {
+ return localRegularExpression;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param RegularExpression
+ */
+ public void setRegularExpression(java.lang.String param) {
+ localRegularExpressionTracker = true;
+
+ this.localRegularExpression = param;
+ }
+
+ public boolean isSrcPortMaxSpecified() {
+ return localSrcPortMaxTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSrcPortMax() {
+ return localSrcPortMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SrcPortMax
+ */
+ public void setSrcPortMax(java.lang.String param) {
+ localSrcPortMaxTracker = true;
+
+ this.localSrcPortMax = param;
+ }
+
+ public boolean isSrcPortMinSpecified() {
+ return localSrcPortMinTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSrcPortMin() {
+ return localSrcPortMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SrcPortMin
+ */
+ public void setSrcPortMin(java.lang.String param) {
+ localSrcPortMinTracker = true;
+
+ this.localSrcPortMin = param;
+ }
+
+ public boolean isStartLocationSpecified() {
+ return localStartLocationTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStartLocation() {
+ return localStartLocation;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StartLocation
+ */
+ public void setStartLocation(java.lang.String param) {
+ localStartLocationTracker = true;
+
+ this.localStartLocation = param;
+ }
+
+ public boolean isThresholdSpecified() {
+ return localThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ localThresholdTracker = true;
+
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosACProtectionForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosACProtectionForService", xmlWriter);
+ }
+ }
+
+ if (localAcDipTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "acDip", xmlWriter);
+
+ if (localAcDip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcDip);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localAcDmaskTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "acDmask", xmlWriter);
+
+ if (localAcDmask == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcDmask);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localAcSipTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "acSip", xmlWriter);
+
+ if (localAcSip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcSip);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localAcSmaskTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "acSmask", xmlWriter);
+
+ if (localAcSmask == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcSmask);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDstPortMaxTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "dstPortMax", xmlWriter);
+
+ if (localDstPortMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDstPortMax);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDstPortMinTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "dstPortMin", xmlWriter);
+
+ if (localDstPortMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDstPortMin);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEndLocationTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "endLocation", xmlWriter);
+
+ if (localEndLocation == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEndLocation);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localFixStringTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "fixString", xmlWriter);
+
+ if (localFixString == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFixString);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtocolTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protocol", xmlWriter);
+
+ if (localProtocol == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtocol);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localRegularExpressionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "regularExpression",
+ xmlWriter);
+
+ if (localRegularExpression == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localRegularExpression);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSrcPortMaxTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "srcPortMax", xmlWriter);
+
+ if (localSrcPortMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSrcPortMax);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSrcPortMinTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "srcPortMin", xmlWriter);
+
+ if (localSrcPortMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSrcPortMin);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localStartLocationTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "startLocation", xmlWriter);
+
+ if (localStartLocation == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStartLocation);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosACProtectionForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosACProtectionForService object = new DdosACProtectionForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosACProtectionForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosACProtectionForService) 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://data.ntc.dp.com", "acDip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcDip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "acDmask").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcDmask(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "acSip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcSip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "acSmask").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcSmask(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "dstPortMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDstPortMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "dstPortMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDstPortMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "endLocation").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEndLocation(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "fixString").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFixString(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protocol").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtocol(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "regularExpression").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setRegularExpression(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "srcPortMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSrcPortMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "srcPortMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSrcPortMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "startLocation").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStartLocation(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosACProtectionFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosACProtectionFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosACProtectionFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosACProtectionFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosACProtectionFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosACProtectionFromUMC object = new GetDdosACProtectionFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosACProtectionFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosACProtectionFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StartAbnormalTaskWithSpecificDeviceForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskWithSpecificDeviceForUMC", "ns1");
+
+ /**
+ * field for AbnormalIp
+ */
+ protected java.lang.String localAbnormalIp;
+
+ /**
+ * field for AttackType
+ */
+ protected int localAttackType;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /**
+ * field for CleanDeviceIps
+ */
+ protected java.lang.String localCleanDeviceIps;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAbnormalIp() {
+ return localAbnormalIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AbnormalIp
+ */
+ public void setAbnormalIp(java.lang.String param) {
+ this.localAbnormalIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAttackType() {
+ return localAttackType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AttackType
+ */
+ public void setAttackType(int param) {
+ this.localAttackType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ this.localDirection = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleanDeviceIps() {
+ return localCleanDeviceIps;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleanDeviceIps
+ */
+ public void setCleanDeviceIps(java.lang.String param) {
+ this.localCleanDeviceIps = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":startAbnormalTaskWithSpecificDeviceForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "startAbnormalTaskWithSpecificDeviceForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "abnormalIp", xmlWriter);
+
+ if (localAbnormalIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAbnormalIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "attackType", xmlWriter);
+
+ if (localAttackType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "attackType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAttackType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleanDeviceIps", xmlWriter);
+
+ if (localCleanDeviceIps == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleanDeviceIps);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StartAbnormalTaskWithSpecificDeviceForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StartAbnormalTaskWithSpecificDeviceForUMC object = new StartAbnormalTaskWithSpecificDeviceForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"startAbnormalTaskWithSpecificDeviceForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StartAbnormalTaskWithSpecificDeviceForUMC) 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://service.ntc.dp.com", "abnormalIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAbnormalIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "attackType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "attackType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAttackType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleanDeviceIps").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleanDeviceIps(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalTcpLengthForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpLengthForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalTcpLengthForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalTcpLengthForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalTcpLengthForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalTcpLengthForUMCResponse object = new SetDdosGlobalTcpLengthForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalTcpLengthForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalTcpLengthForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDdosACProtectionForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDdosACProtectionForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DdosACProtectionForService
+ * This was an Array!
+ */
+ protected DdosACProtectionForService[] localDdosACProtectionForService;
+
+ /* 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 localDdosACProtectionForServiceTracker = false;
+
+ public boolean isDdosACProtectionForServiceSpecified() {
+ return localDdosACProtectionForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DdosACProtectionForService[]
+ */
+ public DdosACProtectionForService[] getDdosACProtectionForService() {
+ return localDdosACProtectionForService;
+ }
+
+ /**
+ * validate the array for DdosACProtectionForService
+ */
+ protected void validateDdosACProtectionForService(
+ DdosACProtectionForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DdosACProtectionForService
+ */
+ public void setDdosACProtectionForService(
+ DdosACProtectionForService[] param) {
+ validateDdosACProtectionForService(param);
+
+ localDdosACProtectionForServiceTracker = true;
+
+ this.localDdosACProtectionForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DdosACProtectionForService
+ */
+ public void addDdosACProtectionForService(
+ DdosACProtectionForService param) {
+ if (localDdosACProtectionForService == null) {
+ localDdosACProtectionForService = new DdosACProtectionForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDdosACProtectionForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDdosACProtectionForService);
+ list.add(param);
+ this.localDdosACProtectionForService = (DdosACProtectionForService[]) list.toArray(new DdosACProtectionForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfDdosACProtectionForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDdosACProtectionForService", xmlWriter);
+ }
+ }
+
+ if (localDdosACProtectionForServiceTracker) {
+ if (localDdosACProtectionForService != null) {
+ for (int i = 0; i < localDdosACProtectionForService.length;
+ i++) {
+ if (localDdosACProtectionForService[i] != null) {
+ localDdosACProtectionForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DdosACProtectionForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosACProtectionForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosACProtectionForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDdosACProtectionForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDdosACProtectionForService object = new ArrayOfDdosACProtectionForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDdosACProtectionForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDdosACProtectionForService) 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://data.ntc.dp.com",
+ "DdosACProtectionForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosACProtectionForService.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://data.ntc.dp.com",
+ "DdosACProtectionForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosACProtectionForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDdosACProtectionForService((DdosACProtectionForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DdosACProtectionForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DnsDomainCustomV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DnsDomainCustomV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * 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;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isDomainSpecified() {
+ return localDomainTracker;
+ }
+
+ /**
+ * 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) {
+ localDomainTracker = true;
+
+ this.localDomain = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DnsDomainCustomV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DnsDomainCustomV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDomainTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "domain", xmlWriter);
+
+ if (localDomain == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDomain);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DnsDomainCustomV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DnsDomainCustomV4ForService object = new DnsDomainCustomV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DnsDomainCustomV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DnsDomainCustomV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "domain").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDomain(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintIcmpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintIcmpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintIcmpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintIcmpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintIcmpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintIcmpForUMCResponse object = new DelFingerprintIcmpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintIcmpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintIcmpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBypassManualTractionStrategyFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBypassManualTractionStrategyFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBypassManualTractionStrategyFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBypassManualTractionStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBypassManualTractionStrategyFromUMC object = new GetAllBypassManualTractionStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBypassManualTractionStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBypassManualTractionStrategyFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddFingerprintIcmpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintIcmpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addFingerprintIcmpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addFingerprintIcmpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddFingerprintIcmpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddFingerprintIcmpForUMCResponse object = new AddFingerprintIcmpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addFingerprintIcmpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddFingerprintIcmpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopBypassManualTractionStrategyForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":stopBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopBypassManualTractionStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopBypassManualTractionStrategyForUMCResponse object = new StopBypassManualTractionStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopBypassManualTractionStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopBypassManualTractionStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosCCuserGroupV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosCCuserGroupV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDdosCCuserGroupV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosCCuserGroupV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosCCuserGroupV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosCCuserGroupV4ForUMC object = new DelDdosCCuserGroupV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosCCuserGroupV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosCCuserGroupV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelBlackHoleStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackHoleStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delBlackHoleStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delBlackHoleStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelBlackHoleStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelBlackHoleStrategyForUMCResponse object = new DelBlackHoleStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delBlackHoleStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelBlackHoleStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDnsSecDomainGlobalV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDnsSecDomainGlobalV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DnsSecDomainGlobalV4ForService
+ * This was an Array!
+ */
+ protected DnsSecDomainGlobalV4ForService[] localDnsSecDomainGlobalV4ForService;
+
+ /* 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 localDnsSecDomainGlobalV4ForServiceTracker = false;
+
+ public boolean isDnsSecDomainGlobalV4ForServiceSpecified() {
+ return localDnsSecDomainGlobalV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DnsSecDomainGlobalV4ForService[]
+ */
+ public DnsSecDomainGlobalV4ForService[] getDnsSecDomainGlobalV4ForService() {
+ return localDnsSecDomainGlobalV4ForService;
+ }
+
+ /**
+ * validate the array for DnsSecDomainGlobalV4ForService
+ */
+ protected void validateDnsSecDomainGlobalV4ForService(
+ DnsSecDomainGlobalV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsSecDomainGlobalV4ForService
+ */
+ public void setDnsSecDomainGlobalV4ForService(
+ DnsSecDomainGlobalV4ForService[] param) {
+ validateDnsSecDomainGlobalV4ForService(param);
+
+ localDnsSecDomainGlobalV4ForServiceTracker = true;
+
+ this.localDnsSecDomainGlobalV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DnsSecDomainGlobalV4ForService
+ */
+ public void addDnsSecDomainGlobalV4ForService(
+ DnsSecDomainGlobalV4ForService param) {
+ if (localDnsSecDomainGlobalV4ForService == null) {
+ localDnsSecDomainGlobalV4ForService = new DnsSecDomainGlobalV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDnsSecDomainGlobalV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDnsSecDomainGlobalV4ForService);
+ list.add(param);
+ this.localDnsSecDomainGlobalV4ForService = (DnsSecDomainGlobalV4ForService[]) list.toArray(new DnsSecDomainGlobalV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDnsSecDomainGlobalV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDnsSecDomainGlobalV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDnsSecDomainGlobalV4ForServiceTracker) {
+ if (localDnsSecDomainGlobalV4ForService != null) {
+ for (int i = 0;
+ i < localDnsSecDomainGlobalV4ForService.length;
+ i++) {
+ if (localDnsSecDomainGlobalV4ForService[i] != null) {
+ localDnsSecDomainGlobalV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DnsSecDomainGlobalV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSecDomainGlobalV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSecDomainGlobalV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDnsSecDomainGlobalV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDnsSecDomainGlobalV4ForService object = new ArrayOfDnsSecDomainGlobalV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDnsSecDomainGlobalV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDnsSecDomainGlobalV4ForService) 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://data.ntc.dp.com",
+ "DnsSecDomainGlobalV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSecDomainGlobalV4ForService.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://data.ntc.dp.com",
+ "DnsSecDomainGlobalV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSecDomainGlobalV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDnsSecDomainGlobalV4ForService((DnsSecDomainGlobalV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DnsSecDomainGlobalV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfFingerprintIcmpForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfFingerprintIcmpForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for FingerprintIcmpForService
+ * This was an Array!
+ */
+ protected FingerprintIcmpForService[] localFingerprintIcmpForService;
+
+ /* 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 localFingerprintIcmpForServiceTracker = false;
+
+ public boolean isFingerprintIcmpForServiceSpecified() {
+ return localFingerprintIcmpForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return FingerprintIcmpForService[]
+ */
+ public FingerprintIcmpForService[] getFingerprintIcmpForService() {
+ return localFingerprintIcmpForService;
+ }
+
+ /**
+ * validate the array for FingerprintIcmpForService
+ */
+ protected void validateFingerprintIcmpForService(
+ FingerprintIcmpForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FingerprintIcmpForService
+ */
+ public void setFingerprintIcmpForService(
+ FingerprintIcmpForService[] param) {
+ validateFingerprintIcmpForService(param);
+
+ localFingerprintIcmpForServiceTracker = true;
+
+ this.localFingerprintIcmpForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param FingerprintIcmpForService
+ */
+ public void addFingerprintIcmpForService(
+ FingerprintIcmpForService param) {
+ if (localFingerprintIcmpForService == null) {
+ localFingerprintIcmpForService = new FingerprintIcmpForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localFingerprintIcmpForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFingerprintIcmpForService);
+ list.add(param);
+ this.localFingerprintIcmpForService = (FingerprintIcmpForService[]) list.toArray(new FingerprintIcmpForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfFingerprintIcmpForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfFingerprintIcmpForService", xmlWriter);
+ }
+ }
+
+ if (localFingerprintIcmpForServiceTracker) {
+ if (localFingerprintIcmpForService != null) {
+ for (int i = 0; i < localFingerprintIcmpForService.length;
+ i++) {
+ if (localFingerprintIcmpForService[i] != null) {
+ localFingerprintIcmpForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "FingerprintIcmpForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintIcmpForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintIcmpForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfFingerprintIcmpForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfFingerprintIcmpForService object = new ArrayOfFingerprintIcmpForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfFingerprintIcmpForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfFingerprintIcmpForService) 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://data.ntc.dp.com",
+ "FingerprintIcmpForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintIcmpForService.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://data.ntc.dp.com",
+ "FingerprintIcmpForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintIcmpForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setFingerprintIcmpForService((FingerprintIcmpForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ FingerprintIcmpForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalIcmpPayloadForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalIcmpPayloadForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for PayloadOffsetMax
+ */
+ protected java.lang.String localPayloadOffsetMax;
+
+ /* 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 localPayloadOffsetMaxTracker = false;
+
+ /**
+ * field for PayloadOffsetMin
+ */
+ protected java.lang.String localPayloadOffsetMin;
+
+ /* 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 localPayloadOffsetMinTracker = false;
+
+ /**
+ * field for PayloadThreshold
+ */
+ protected java.lang.String localPayloadThreshold;
+
+ /* 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 localPayloadThresholdTracker = false;
+
+ /**
+ * field for Payloadcontentenable
+ */
+ protected java.lang.String localPayloadcontentenable;
+
+ /* 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 localPayloadcontentenableTracker = false;
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isPayloadOffsetMaxSpecified() {
+ return localPayloadOffsetMaxTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMax() {
+ return localPayloadOffsetMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMax
+ */
+ public void setPayloadOffsetMax(java.lang.String param) {
+ localPayloadOffsetMaxTracker = true;
+
+ this.localPayloadOffsetMax = param;
+ }
+
+ public boolean isPayloadOffsetMinSpecified() {
+ return localPayloadOffsetMinTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMin() {
+ return localPayloadOffsetMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMin
+ */
+ public void setPayloadOffsetMin(java.lang.String param) {
+ localPayloadOffsetMinTracker = true;
+
+ this.localPayloadOffsetMin = param;
+ }
+
+ public boolean isPayloadThresholdSpecified() {
+ return localPayloadThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadThreshold() {
+ return localPayloadThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadThreshold
+ */
+ public void setPayloadThreshold(java.lang.String param) {
+ localPayloadThresholdTracker = true;
+
+ this.localPayloadThreshold = param;
+ }
+
+ public boolean isPayloadcontentenableSpecified() {
+ return localPayloadcontentenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadcontentenable() {
+ return localPayloadcontentenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Payloadcontentenable
+ */
+ public void setPayloadcontentenable(java.lang.String param) {
+ localPayloadcontentenableTracker = true;
+
+ this.localPayloadcontentenable = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalIcmpPayloadForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalIcmpPayloadForService", xmlWriter);
+ }
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadOffsetMaxTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMax", xmlWriter);
+
+ if (localPayloadOffsetMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMax);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadOffsetMinTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMin", xmlWriter);
+
+ if (localPayloadOffsetMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMin);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadThreshold", xmlWriter);
+
+ if (localPayloadThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadcontentenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadcontentenable",
+ xmlWriter);
+
+ if (localPayloadcontentenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadcontentenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalIcmpPayloadForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalIcmpPayloadForService object = new DdosGlobalIcmpPayloadForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalIcmpPayloadForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalIcmpPayloadForService) 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadOffsetMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadOffsetMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadcontentenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadcontentenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsDomainCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainCustomV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Domain
+ */
+ protected java.lang.String localDomain;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDnsDomainCustomV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsDomainCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "domain", xmlWriter);
+
+ if (localDomain == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDomain);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsDomainCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsDomainCustomV4ForUMC object = new AddDnsDomainCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsDomainCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsDomainCustomV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "domain").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDomain(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StartBlackHoleStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBlackHoleStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":startBlackHoleStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "startBlackHoleStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StartBlackHoleStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StartBlackHoleStrategyForUMCResponse object = new StartBlackHoleStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"startBlackHoleStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StartBlackHoleStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosDnsRetryProtectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosDnsRetryProtectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDdosDnsRetryProtectForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosDnsRetryProtectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosDnsRetryProtectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosDnsRetryProtectForUMCResponse object = new ModDdosDnsRetryProtectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosDnsRetryProtectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosDnsRetryProtectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBlackHoleAutoStrategyFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBlackHoleAutoStrategyFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBlackHoleAutoStrategyFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBlackHoleAutoStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBlackHoleAutoStrategyFromUMC object = new GetAllBlackHoleAutoStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBlackHoleAutoStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBlackHoleAutoStrategyFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintTcpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintTcpForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintTcpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintTcpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintTcpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintTcpForUMC object = new DelFingerprintTcpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintTcpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintTcpForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosHttpGetUriCusProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetUriCusProV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDdosHttpGetUriCusProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosHttpGetUriCusProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosHttpGetUriCusProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosHttpGetUriCusProV4ForUMC object = new DelDdosHttpGetUriCusProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosHttpGetUriCusProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosHttpGetUriCusProV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBypassManualTractionStrategyForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBypassManualTractionStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBypassManualTractionStrategyForUMCResponse object = new ModBypassManualTractionStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBypassManualTractionStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBypassManualTractionStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteProtectionObjectIPRangeForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":deleteProtectionObjectIPRangeForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteProtectionObjectIPRangeForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteProtectionObjectIPRangeForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteProtectionObjectIPRangeForUMCResponse object = new DeleteProtectionObjectIPRangeForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteProtectionObjectIPRangeForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteProtectionObjectIPRangeForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllCompleteAnomalyDetectionStrategyFromUMC
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllCompleteAnomalyDetectionStrategyFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllCompleteAnomalyDetectionStrategyFromUMC",
+ xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllCompleteAnomalyDetectionStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllCompleteAnomalyDetectionStrategyFromUMC object = new GetAllCompleteAnomalyDetectionStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllCompleteAnomalyDetectionStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllCompleteAnomalyDetectionStrategyFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpStateFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpStateFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalTcpStateFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpStateFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpStateFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpStateFromUMC object = new GetDdosGlobalTcpStateFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpStateFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpStateFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosHttpGetSipGloProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipGloProV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDdosHttpGetSipGloProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosHttpGetSipGloProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosHttpGetSipGloProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosHttpGetSipGloProV4ForUMC object = new DelDdosHttpGetSipGloProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosHttpGetSipGloProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosHttpGetSipGloProV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteProtectionObjectIPRangeForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectIPRangeForUMC", "ns1");
+
+ /**
+ * field for ProtectionName
+ */
+ protected java.lang.String localProtectionName;
+
+ /**
+ * field for IpRangeIDs
+ */
+ protected java.lang.String localIpRangeIDs;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionName() {
+ return localProtectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionName
+ */
+ public void setProtectionName(java.lang.String param) {
+ this.localProtectionName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpRangeIDs() {
+ return localIpRangeIDs;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpRangeIDs
+ */
+ public void setIpRangeIDs(java.lang.String param) {
+ this.localIpRangeIDs = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":deleteProtectionObjectIPRangeForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteProtectionObjectIPRangeForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionName", xmlWriter);
+
+ if (localProtectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipRangeIDs", xmlWriter);
+
+ if (localIpRangeIDs == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpRangeIDs);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteProtectionObjectIPRangeForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteProtectionObjectIPRangeForUMC object = new DeleteProtectionObjectIPRangeForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteProtectionObjectIPRangeForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteProtectionObjectIPRangeForUMC) 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://service.ntc.dp.com", "protectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipRangeIDs").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpRangeIDs(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetCompleteAnomalyDetectionStrategyFromUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getCompleteAnomalyDetectionStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected AnomalyDetectionStrategy localOut;
+
+ /**
+ * Auto generated getter method
+ * @return AnomalyDetectionStrategy
+ */
+ public AnomalyDetectionStrategy getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(AnomalyDetectionStrategy param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getCompleteAnomalyDetectionStrategyFromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getCompleteAnomalyDetectionStrategyFromUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetCompleteAnomalyDetectionStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetCompleteAnomalyDetectionStrategyFromUMCResponse object = new GetCompleteAnomalyDetectionStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getCompleteAnomalyDetectionStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetCompleteAnomalyDetectionStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(AnomalyDetectionStrategy.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetSipGloProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipGloProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDdosHttpGetSipGloProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetSipGloProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetSipGloProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetSipGloProV4ForUMCResponse object = new ModDdosHttpGetSipGloProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetSipGloProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetSipGloProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosCCuserGroupV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosCCuserGroupV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDdosCCuserGroupV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosCCuserGroupV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosCCuserGroupV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosCCuserGroupV4ForUMCResponse object = new ModDdosCCuserGroupV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosCCuserGroupV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosCCuserGroupV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopAbnormalTaskWithSpecificDeviceForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":stopAbnormalTaskWithSpecificDeviceForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopAbnormalTaskWithSpecificDeviceForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopAbnormalTaskWithSpecificDeviceForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopAbnormalTaskWithSpecificDeviceForUMCResponse object = new StopAbnormalTaskWithSpecificDeviceForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopAbnormalTaskWithSpecificDeviceForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopAbnormalTaskWithSpecificDeviceForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalUdpFragForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpFragForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Udpenable
+ */
+ protected java.lang.String localUdpenable;
+
+ /**
+ * field for Udpthreshold
+ */
+ protected java.lang.String localUdpthreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getUdpenable() {
+ return localUdpenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Udpenable
+ */
+ public void setUdpenable(java.lang.String param) {
+ this.localUdpenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getUdpthreshold() {
+ return localUdpthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Udpthreshold
+ */
+ public void setUdpthreshold(java.lang.String param) {
+ this.localUdpthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalUdpFragForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalUdpFragForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "udpenable", xmlWriter);
+
+ if (localUdpenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localUdpenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "udpthreshold", xmlWriter);
+
+ if (localUdpthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localUdpthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalUdpFragForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalUdpFragForUMC object = new SetDdosGlobalUdpFragForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalUdpFragForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalUdpFragForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "udpenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setUdpenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "udpthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setUdpthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSecDomainGlobalV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainGlobalV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDnsSecDomainGlobalV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDnsSecDomainGlobalV4ForService
+ */
+ public ArrayOfDnsSecDomainGlobalV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDnsSecDomainGlobalV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDnsSecDomainGlobalV4FromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSecDomainGlobalV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSecDomainGlobalV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSecDomainGlobalV4FromUMCResponse object = new GetDnsSecDomainGlobalV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSecDomainGlobalV4FromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSecDomainGlobalV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDnsSecDomainGlobalV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpFlagFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFlagFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalTcpFlagFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpFlagFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpFlagFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpFlagFromUMC object = new GetDdosGlobalTcpFlagFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpFlagFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpFlagFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StartBypassManualTractionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startBypassManualTractionStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for CleaningDevices
+ */
+ protected java.lang.String localCleaningDevices;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleaningDevices() {
+ return localCleaningDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningDevices
+ */
+ public void setCleaningDevices(java.lang.String param) {
+ this.localCleaningDevices = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":startBypassManualTractionStrategyForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "startBypassManualTractionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningDevices", xmlWriter);
+
+ if (localCleaningDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleaningDevices);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StartBypassManualTractionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StartBypassManualTractionStrategyForUMC object = new StartBypassManualTractionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"startBypassManualTractionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StartBypassManualTractionStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteProtectionObjectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectForUMC", "ns1");
+
+ /**
+ * field for ProtectionName
+ */
+ protected java.lang.String localProtectionName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionName() {
+ return localProtectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionName
+ */
+ public void setProtectionName(java.lang.String param) {
+ this.localProtectionName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":deleteProtectionObjectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteProtectionObjectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionName", xmlWriter);
+
+ if (localProtectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteProtectionObjectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteProtectionObjectForUMC object = new DeleteProtectionObjectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteProtectionObjectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteProtectionObjectForUMC) 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://service.ntc.dp.com", "protectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpLengthFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpLengthFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalTcpLengthFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpLengthFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpLengthFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpLengthFromUMC object = new GetDdosGlobalTcpLengthFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpLengthFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpLengthFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBlackHoleManualStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleManualStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for IpAddress
+ */
+ protected java.lang.String localIpAddress;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpAddress() {
+ return localIpAddress;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpAddress
+ */
+ public void setIpAddress(java.lang.String param) {
+ this.localIpAddress = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modBlackHoleManualStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBlackHoleManualStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipAddress", xmlWriter);
+
+ if (localIpAddress == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpAddress);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBlackHoleManualStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBlackHoleManualStrategyForUMC object = new ModBlackHoleManualStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBlackHoleManualStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBlackHoleManualStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipAddress").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpAddress(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSecDomainCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainCustomV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Domain
+ */
+ protected java.lang.String localDomain;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDnsSecDomainCustomV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSecDomainCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "domain", xmlWriter);
+
+ if (localDomain == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDomain);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSecDomainCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSecDomainCustomV4ForUMC object = new AddDnsSecDomainCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSecDomainCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSecDomainCustomV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "domain").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDomain(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetSipGloProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipGloProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDdosHttpGetSipGloProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetSipGloProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetSipGloProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetSipGloProV4ForUMC object = new ModDdosHttpGetSipGloProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetSipGloProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetSipGloProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintIcmpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintIcmpForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintIcmpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintIcmpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintIcmpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintIcmpForUMC object = new DelFingerprintIcmpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintIcmpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintIcmpForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsDomainGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDnsDomainGlobalV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsDomainGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsDomainGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsDomainGlobalV4ForUMC object = new DelDnsDomainGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsDomainGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsDomainGlobalV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class LinkProtectionStrategyTemplateForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":linkProtectionStrategyTemplateForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "linkProtectionStrategyTemplateForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 LinkProtectionStrategyTemplateForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ LinkProtectionStrategyTemplateForUMCResponse object = new LinkProtectionStrategyTemplateForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"linkProtectionStrategyTemplateForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (LinkProtectionStrategyTemplateForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsSecDomainGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDnsSecDomainGlobalV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsSecDomainGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsSecDomainGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsSecDomainGlobalV4ForUMC object = new DelDnsSecDomainGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsSecDomainGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsSecDomainGlobalV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfFingerprintTcpForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfFingerprintTcpForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for FingerprintTcpForService
+ * This was an Array!
+ */
+ protected FingerprintTcpForService[] localFingerprintTcpForService;
+
+ /* 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 localFingerprintTcpForServiceTracker = false;
+
+ public boolean isFingerprintTcpForServiceSpecified() {
+ return localFingerprintTcpForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return FingerprintTcpForService[]
+ */
+ public FingerprintTcpForService[] getFingerprintTcpForService() {
+ return localFingerprintTcpForService;
+ }
+
+ /**
+ * validate the array for FingerprintTcpForService
+ */
+ protected void validateFingerprintTcpForService(
+ FingerprintTcpForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FingerprintTcpForService
+ */
+ public void setFingerprintTcpForService(
+ FingerprintTcpForService[] param) {
+ validateFingerprintTcpForService(param);
+
+ localFingerprintTcpForServiceTracker = true;
+
+ this.localFingerprintTcpForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param FingerprintTcpForService
+ */
+ public void addFingerprintTcpForService(FingerprintTcpForService param) {
+ if (localFingerprintTcpForService == null) {
+ localFingerprintTcpForService = new FingerprintTcpForService[] { };
+ }
+
+ //update the setting tracker
+ localFingerprintTcpForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFingerprintTcpForService);
+ list.add(param);
+ this.localFingerprintTcpForService = (FingerprintTcpForService[]) list.toArray(new FingerprintTcpForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfFingerprintTcpForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfFingerprintTcpForService", xmlWriter);
+ }
+ }
+
+ if (localFingerprintTcpForServiceTracker) {
+ if (localFingerprintTcpForService != null) {
+ for (int i = 0; i < localFingerprintTcpForService.length;
+ i++) {
+ if (localFingerprintTcpForService[i] != null) {
+ localFingerprintTcpForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "FingerprintTcpForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintTcpForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintTcpForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfFingerprintTcpForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfFingerprintTcpForService object = new ArrayOfFingerprintTcpForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfFingerprintTcpForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfFingerprintTcpForService) 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://data.ntc.dp.com",
+ "FingerprintTcpForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintTcpForService.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://data.ntc.dp.com",
+ "FingerprintTcpForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintTcpForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setFingerprintTcpForService((FingerprintTcpForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ FingerprintTcpForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsDomainGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDnsDomainGlobalV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsDomainGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsDomainGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsDomainGlobalV4ForUMCResponse object = new DelDnsDomainGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsDomainGlobalV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsDomainGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsSecDomainCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDnsSecDomainCustomV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsSecDomainCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsSecDomainCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsSecDomainCustomV4ForUMCResponse object = new ModDnsSecDomainCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsSecDomainCustomV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsSecDomainCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosACProtectionForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosACProtectionForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosACProtectionForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosACProtectionForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosACProtectionForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosACProtectionForUMCResponse object = new AddDdosACProtectionForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosACProtectionForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosACProtectionForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllProtectionObjectFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionObjectFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfProtectionObjectDataForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfProtectionObjectDataForService
+ */
+ public ArrayOfProtectionObjectDataForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfProtectionObjectDataForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllProtectionObjectFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllProtectionObjectFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllProtectionObjectFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllProtectionObjectFromUMCResponse object = new GetAllProtectionObjectFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllProtectionObjectFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllProtectionObjectFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfProtectionObjectDataForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfProtectionTargetWithStrategyForService
+ implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfProtectionTargetWithStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ProtectionTargetWithStrategyForService
+ * This was an Array!
+ */
+ protected ProtectionTargetWithStrategyForService[] localProtectionTargetWithStrategyForService;
+
+ /* 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 localProtectionTargetWithStrategyForServiceTracker = false;
+
+ public boolean isProtectionTargetWithStrategyForServiceSpecified() {
+ return localProtectionTargetWithStrategyForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return ProtectionTargetWithStrategyForService[]
+ */
+ public ProtectionTargetWithStrategyForService[] getProtectionTargetWithStrategyForService() {
+ return localProtectionTargetWithStrategyForService;
+ }
+
+ /**
+ * validate the array for ProtectionTargetWithStrategyForService
+ */
+ protected void validateProtectionTargetWithStrategyForService(
+ ProtectionTargetWithStrategyForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionTargetWithStrategyForService
+ */
+ public void setProtectionTargetWithStrategyForService(
+ ProtectionTargetWithStrategyForService[] param) {
+ validateProtectionTargetWithStrategyForService(param);
+
+ localProtectionTargetWithStrategyForServiceTracker = true;
+
+ this.localProtectionTargetWithStrategyForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param ProtectionTargetWithStrategyForService
+ */
+ public void addProtectionTargetWithStrategyForService(
+ ProtectionTargetWithStrategyForService param) {
+ if (localProtectionTargetWithStrategyForService == null) {
+ localProtectionTargetWithStrategyForService = new ProtectionTargetWithStrategyForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localProtectionTargetWithStrategyForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProtectionTargetWithStrategyForService);
+ list.add(param);
+ this.localProtectionTargetWithStrategyForService = (ProtectionTargetWithStrategyForService[]) list.toArray(new ProtectionTargetWithStrategyForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfProtectionTargetWithStrategyForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfProtectionTargetWithStrategyForService",
+ xmlWriter);
+ }
+ }
+
+ if (localProtectionTargetWithStrategyForServiceTracker) {
+ if (localProtectionTargetWithStrategyForService != null) {
+ for (int i = 0;
+ i < localProtectionTargetWithStrategyForService.length;
+ i++) {
+ if (localProtectionTargetWithStrategyForService[i] != null) {
+ localProtectionTargetWithStrategyForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "ProtectionTargetWithStrategyForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "ProtectionTargetWithStrategyForService",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "ProtectionTargetWithStrategyForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfProtectionTargetWithStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfProtectionTargetWithStrategyForService object = new ArrayOfProtectionTargetWithStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfProtectionTargetWithStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfProtectionTargetWithStrategyForService) 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://data.ntc.dp.com",
+ "ProtectionTargetWithStrategyForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(ProtectionTargetWithStrategyForService.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://data.ntc.dp.com",
+ "ProtectionTargetWithStrategyForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(ProtectionTargetWithStrategyForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setProtectionTargetWithStrategyForService((ProtectionTargetWithStrategyForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ ProtectionTargetWithStrategyForService.class,
+ list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalTcpFlagForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFlagForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for TcpFlagenable
+ */
+ protected java.lang.String localTcpFlagenable;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getTcpFlagenable() {
+ return localTcpFlagenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param TcpFlagenable
+ */
+ public void setTcpFlagenable(java.lang.String param) {
+ this.localTcpFlagenable = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalTcpFlagForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalTcpFlagForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "tcpFlagenable", xmlWriter);
+
+ if (localTcpFlagenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localTcpFlagenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalTcpFlagForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalTcpFlagForUMC object = new SetDdosGlobalTcpFlagForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalTcpFlagForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalTcpFlagForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "tcpFlagenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setTcpFlagenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllProtectDevices implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectDevices", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getAllProtectDevices", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllProtectDevices", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllProtectDevices parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllProtectDevices object = new GetAllProtectDevices();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllProtectDevices".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllProtectDevices) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDdosCCuserGroupV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDdosCCuserGroupV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DdosCCuserGroupV4ForService
+ * This was an Array!
+ */
+ protected DdosCCuserGroupV4ForService[] localDdosCCuserGroupV4ForService;
+
+ /* 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 localDdosCCuserGroupV4ForServiceTracker = false;
+
+ public boolean isDdosCCuserGroupV4ForServiceSpecified() {
+ return localDdosCCuserGroupV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DdosCCuserGroupV4ForService[]
+ */
+ public DdosCCuserGroupV4ForService[] getDdosCCuserGroupV4ForService() {
+ return localDdosCCuserGroupV4ForService;
+ }
+
+ /**
+ * validate the array for DdosCCuserGroupV4ForService
+ */
+ protected void validateDdosCCuserGroupV4ForService(
+ DdosCCuserGroupV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DdosCCuserGroupV4ForService
+ */
+ public void setDdosCCuserGroupV4ForService(
+ DdosCCuserGroupV4ForService[] param) {
+ validateDdosCCuserGroupV4ForService(param);
+
+ localDdosCCuserGroupV4ForServiceTracker = true;
+
+ this.localDdosCCuserGroupV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DdosCCuserGroupV4ForService
+ */
+ public void addDdosCCuserGroupV4ForService(
+ DdosCCuserGroupV4ForService param) {
+ if (localDdosCCuserGroupV4ForService == null) {
+ localDdosCCuserGroupV4ForService = new DdosCCuserGroupV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDdosCCuserGroupV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDdosCCuserGroupV4ForService);
+ list.add(param);
+ this.localDdosCCuserGroupV4ForService = (DdosCCuserGroupV4ForService[]) list.toArray(new DdosCCuserGroupV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDdosCCuserGroupV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDdosCCuserGroupV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDdosCCuserGroupV4ForServiceTracker) {
+ if (localDdosCCuserGroupV4ForService != null) {
+ for (int i = 0;
+ i < localDdosCCuserGroupV4ForService.length; i++) {
+ if (localDdosCCuserGroupV4ForService[i] != null) {
+ localDdosCCuserGroupV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DdosCCuserGroupV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosCCuserGroupV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosCCuserGroupV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDdosCCuserGroupV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDdosCCuserGroupV4ForService object = new ArrayOfDdosCCuserGroupV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDdosCCuserGroupV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDdosCCuserGroupV4ForService) 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://data.ntc.dp.com",
+ "DdosCCuserGroupV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosCCuserGroupV4ForService.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://data.ntc.dp.com",
+ "DdosCCuserGroupV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosCCuserGroupV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDdosCCuserGroupV4ForService((DdosCCuserGroupV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DdosCCuserGroupV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBlackHoleAutoStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleAutoStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addBlackHoleAutoStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBlackHoleAutoStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBlackHoleAutoStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBlackHoleAutoStrategyForUMCResponse object = new AddBlackHoleAutoStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBlackHoleAutoStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBlackHoleAutoStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GeDnsDomainCustomV4TFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "geDnsDomainCustomV4tFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":geDnsDomainCustomV4tFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "geDnsDomainCustomV4tFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GeDnsDomainCustomV4TFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GeDnsDomainCustomV4TFromUMC object = new GeDnsDomainCustomV4TFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"geDnsDomainCustomV4tFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GeDnsDomainCustomV4TFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBlackHoleAutoStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleAutoStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for DetectMode
+ */
+ protected int localDetectMode;
+
+ /**
+ * field for BlackHoleThreshold
+ */
+ protected int localBlackHoleThreshold;
+
+ /**
+ * field for BlackHoleTime
+ */
+ protected int localBlackHoleTime;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDetectMode() {
+ return localDetectMode;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectMode
+ */
+ public void setDetectMode(int param) {
+ this.localDetectMode = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBlackHoleThreshold() {
+ return localBlackHoleThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleThreshold
+ */
+ public void setBlackHoleThreshold(int param) {
+ this.localBlackHoleThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBlackHoleTime() {
+ return localBlackHoleTime;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleTime
+ */
+ public void setBlackHoleTime(int param) {
+ this.localBlackHoleTime = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modBlackHoleAutoStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBlackHoleAutoStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectMode", xmlWriter);
+
+ if (localDetectMode == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "detectMode cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDetectMode));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "blackHoleThreshold", xmlWriter);
+
+ if (localBlackHoleThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "blackHoleThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBlackHoleThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "blackHoleTime", xmlWriter);
+
+ if (localBlackHoleTime == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "blackHoleTime cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBlackHoleTime));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBlackHoleAutoStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBlackHoleAutoStrategyForUMC object = new ModBlackHoleAutoStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBlackHoleAutoStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBlackHoleAutoStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectMode").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "detectMode" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectMode(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "blackHoleThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "blackHoleThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBlackHoleThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "blackHoleTime").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "blackHoleTime" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBlackHoleTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosHttpGetUriCusProV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriCusProV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDdosHttpGetUriCusProV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDdosHttpGetUriCusProV4ForService
+ */
+ public ArrayOfDdosHttpGetUriCusProV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDdosHttpGetUriCusProV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosHttpGetUriCusProV4FromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosHttpGetUriCusProV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosHttpGetUriCusProV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosHttpGetUriCusProV4FromUMCResponse object = new GetDdosHttpGetUriCusProV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosHttpGetUriCusProV4FromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosHttpGetUriCusProV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDdosHttpGetUriCusProV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAnomalyDetectionStrategyFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMC", "ns1");
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ this.localStrategyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAnomalyDetectionStrategyFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAnomalyDetectionStrategyFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAnomalyDetectionStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAnomalyDetectionStrategyFromUMC object = new GetAnomalyDetectionStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAnomalyDetectionStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAnomalyDetectionStrategyFromUMC) 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://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintTcpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintTcpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintTcpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintTcpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintTcpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintTcpForUMCResponse object = new ModFingerprintTcpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintTcpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintTcpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintUdpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintUdpForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Port1
+ */
+ protected java.lang.String localPort1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Port2
+ */
+ protected java.lang.String localPort2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Port3
+ */
+ protected java.lang.String localPort3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort1() {
+ return localPort1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port1
+ */
+ public void setPort1(java.lang.String param) {
+ this.localPort1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort2() {
+ return localPort2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port2
+ */
+ public void setPort2(java.lang.String param) {
+ this.localPort2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort3() {
+ return localPort3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port3
+ */
+ public void setPort3(java.lang.String param) {
+ this.localPort3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintUdpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintUdpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port1", xmlWriter);
+
+ if (localPort1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port2", xmlWriter);
+
+ if (localPort2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port3", xmlWriter);
+
+ if (localPort3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintUdpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintUdpForUMC object = new ModFingerprintUdpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintUdpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintUdpForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalIcmpFragForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpFragForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalIcmpFragForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalIcmpFragForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalIcmpFragForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalIcmpFragForUMCResponse object = new SetDdosGlobalIcmpFragForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalIcmpFragForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalIcmpFragForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintTcpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintTcpForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Port1
+ */
+ protected java.lang.String localPort1;
+
+ /**
+ * field for Flag1
+ */
+ protected java.lang.String localFlag1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Port2
+ */
+ protected java.lang.String localPort2;
+
+ /**
+ * field for Flag2
+ */
+ protected java.lang.String localFlag2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Port3
+ */
+ protected java.lang.String localPort3;
+
+ /**
+ * field for Flag3
+ */
+ protected java.lang.String localFlag3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort1() {
+ return localPort1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port1
+ */
+ public void setPort1(java.lang.String param) {
+ this.localPort1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag1() {
+ return localFlag1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag1
+ */
+ public void setFlag1(java.lang.String param) {
+ this.localFlag1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort2() {
+ return localPort2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port2
+ */
+ public void setPort2(java.lang.String param) {
+ this.localPort2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag2() {
+ return localFlag2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag2
+ */
+ public void setFlag2(java.lang.String param) {
+ this.localFlag2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort3() {
+ return localPort3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port3
+ */
+ public void setPort3(java.lang.String param) {
+ this.localPort3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag3() {
+ return localFlag3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag3
+ */
+ public void setFlag3(java.lang.String param) {
+ this.localFlag3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintTcpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintTcpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port1", xmlWriter);
+
+ if (localPort1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "flag1", xmlWriter);
+
+ if (localFlag1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port2", xmlWriter);
+
+ if (localPort2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "flag2", xmlWriter);
+
+ if (localFlag2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port3", xmlWriter);
+
+ if (localPort3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "flag3", xmlWriter);
+
+ if (localFlag3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintTcpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintTcpForUMC object = new ModFingerprintTcpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintTcpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintTcpForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "flag1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "flag2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "flag3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsDomainCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDnsDomainCustomV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsDomainCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsDomainCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsDomainCustomV4ForUMCResponse object = new ModDnsDomainCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsDomainCustomV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsDomainCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfProtectionObjectDataForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfProtectionObjectDataForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ProtectionObjectDataForService
+ * This was an Array!
+ */
+ protected ProtectionObjectDataForService[] localProtectionObjectDataForService;
+
+ /* 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 localProtectionObjectDataForServiceTracker = false;
+
+ public boolean isProtectionObjectDataForServiceSpecified() {
+ return localProtectionObjectDataForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return ProtectionObjectDataForService[]
+ */
+ public ProtectionObjectDataForService[] getProtectionObjectDataForService() {
+ return localProtectionObjectDataForService;
+ }
+
+ /**
+ * validate the array for ProtectionObjectDataForService
+ */
+ protected void validateProtectionObjectDataForService(
+ ProtectionObjectDataForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionObjectDataForService
+ */
+ public void setProtectionObjectDataForService(
+ ProtectionObjectDataForService[] param) {
+ validateProtectionObjectDataForService(param);
+
+ localProtectionObjectDataForServiceTracker = true;
+
+ this.localProtectionObjectDataForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param ProtectionObjectDataForService
+ */
+ public void addProtectionObjectDataForService(
+ ProtectionObjectDataForService param) {
+ if (localProtectionObjectDataForService == null) {
+ localProtectionObjectDataForService = new ProtectionObjectDataForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localProtectionObjectDataForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProtectionObjectDataForService);
+ list.add(param);
+ this.localProtectionObjectDataForService = (ProtectionObjectDataForService[]) list.toArray(new ProtectionObjectDataForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfProtectionObjectDataForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfProtectionObjectDataForService", xmlWriter);
+ }
+ }
+
+ if (localProtectionObjectDataForServiceTracker) {
+ if (localProtectionObjectDataForService != null) {
+ for (int i = 0;
+ i < localProtectionObjectDataForService.length;
+ i++) {
+ if (localProtectionObjectDataForService[i] != null) {
+ localProtectionObjectDataForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "ProtectionObjectDataForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "ProtectionObjectDataForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "ProtectionObjectDataForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfProtectionObjectDataForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfProtectionObjectDataForService object = new ArrayOfProtectionObjectDataForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfProtectionObjectDataForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfProtectionObjectDataForService) 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://data.ntc.dp.com",
+ "ProtectionObjectDataForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(ProtectionObjectDataForService.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://data.ntc.dp.com",
+ "ProtectionObjectDataForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(ProtectionObjectDataForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setProtectionObjectDataForService((ProtectionObjectDataForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ ProtectionObjectDataForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class BypassManualTractionStrategyForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = BypassManualTractionStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Enabled
+ */
+ protected java.lang.String localEnabled;
+
+ /* 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 localEnabledTracker = false;
+
+ /**
+ * field for IpRange
+ */
+ protected java.lang.String localIpRange;
+
+ /* 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 localIpRangeTracker = false;
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /* 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 localPolicyNameTracker = false;
+
+ /**
+ * field for ProtectName
+ */
+ protected java.lang.String localProtectName;
+
+ /* 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 localProtectNameTracker = false;
+
+ public boolean isEnabledSpecified() {
+ return localEnabledTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnabled() {
+ return localEnabled;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enabled
+ */
+ public void setEnabled(java.lang.String param) {
+ localEnabledTracker = true;
+
+ this.localEnabled = param;
+ }
+
+ public boolean isIpRangeSpecified() {
+ return localIpRangeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpRange() {
+ return localIpRange;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpRange
+ */
+ public void setIpRange(java.lang.String param) {
+ localIpRangeTracker = true;
+
+ this.localIpRange = param;
+ }
+
+ public boolean isPolicyNameSpecified() {
+ return localPolicyNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ localPolicyNameTracker = true;
+
+ this.localPolicyName = param;
+ }
+
+ public boolean isProtectNameSpecified() {
+ return localProtectNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectName() {
+ return localProtectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectName
+ */
+ public void setProtectName(java.lang.String param) {
+ localProtectNameTracker = true;
+
+ this.localProtectName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":BypassManualTractionStrategyForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "BypassManualTractionStrategyForService", xmlWriter);
+ }
+ }
+
+ if (localEnabledTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enabled", xmlWriter);
+
+ if (localEnabled == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnabled);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpRangeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ipRange", xmlWriter);
+
+ if (localIpRange == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpRange);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPolicyNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectName", xmlWriter);
+
+ if (localProtectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 BypassManualTractionStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ BypassManualTractionStrategyForService object = new BypassManualTractionStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"BypassManualTractionStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (BypassManualTractionStrategyForService) 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://data.ntc.dp.com", "enabled").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnabled(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ipRange").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpRange(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DetectionObjectDataForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DetectionObjectDataForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for CleaningDevices
+ */
+ protected java.lang.String localCleaningDevices;
+
+ /* 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 localCleaningDevicesTracker = false;
+
+ /**
+ * field for CleaningType
+ */
+ protected int localCleaningType;
+
+ /* 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 localCleaningTypeTracker = false;
+
+ /**
+ * field for DetectionDevices
+ */
+ protected java.lang.String localDetectionDevices;
+
+ /* 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 localDetectionDevicesTracker = false;
+
+ /**
+ * field for DetectionName
+ */
+ protected java.lang.String localDetectionName;
+
+ /* 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 localDetectionNameTracker = false;
+
+ /**
+ * field for IpSegment
+ */
+ protected java.lang.String localIpSegment;
+
+ /* 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 localIpSegmentTracker = false;
+
+ /**
+ * field for IpType
+ */
+ protected int localIpType;
+
+ /* 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 localIpTypeTracker = false;
+
+ public boolean isCleaningDevicesSpecified() {
+ return localCleaningDevicesTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleaningDevices() {
+ return localCleaningDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningDevices
+ */
+ public void setCleaningDevices(java.lang.String param) {
+ localCleaningDevicesTracker = true;
+
+ this.localCleaningDevices = param;
+ }
+
+ public boolean isCleaningTypeSpecified() {
+ return localCleaningTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCleaningType() {
+ return localCleaningType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningType
+ */
+ public void setCleaningType(int param) {
+ // setting primitive attribute tracker to true
+ localCleaningTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localCleaningType = param;
+ }
+
+ public boolean isDetectionDevicesSpecified() {
+ return localDetectionDevicesTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionDevices() {
+ return localDetectionDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionDevices
+ */
+ public void setDetectionDevices(java.lang.String param) {
+ localDetectionDevicesTracker = true;
+
+ this.localDetectionDevices = param;
+ }
+
+ public boolean isDetectionNameSpecified() {
+ return localDetectionNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionName() {
+ return localDetectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionName
+ */
+ public void setDetectionName(java.lang.String param) {
+ localDetectionNameTracker = true;
+
+ this.localDetectionName = param;
+ }
+
+ public boolean isIpSegmentSpecified() {
+ return localIpSegmentTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpSegment() {
+ return localIpSegment;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpSegment
+ */
+ public void setIpSegment(java.lang.String param) {
+ localIpSegmentTracker = true;
+
+ this.localIpSegment = param;
+ }
+
+ public boolean isIpTypeSpecified() {
+ return localIpTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpType() {
+ return localIpType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpType
+ */
+ public void setIpType(int param) {
+ // setting primitive attribute tracker to true
+ localIpTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localIpType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DetectionObjectDataForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DetectionObjectDataForService", xmlWriter);
+ }
+ }
+
+ if (localCleaningDevicesTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningDevices", xmlWriter);
+
+ if (localCleaningDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleaningDevices);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCleaningTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningType", xmlWriter);
+
+ if (localCleaningType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "cleaningType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCleaningType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDetectionDevicesTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionDevices", xmlWriter);
+
+ if (localDetectionDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionDevices);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDetectionNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionName", xmlWriter);
+
+ if (localDetectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpSegmentTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ipSegment", xmlWriter);
+
+ if (localIpSegment == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpSegment);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ipType", xmlWriter);
+
+ if (localIpType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DetectionObjectDataForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DetectionObjectDataForService object = new DetectionObjectDataForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DetectionObjectDataForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DetectionObjectDataForService) 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://data.ntc.dp.com", "cleaningDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "cleaningType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "cleaningType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setCleaningType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com", "detectionDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "detectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ipSegment").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpSegment(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setIpType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteProtectionObjectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteProtectionObjectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":deleteProtectionObjectForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteProtectionObjectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteProtectionObjectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteProtectionObjectForUMCResponse object = new DeleteProtectionObjectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteProtectionObjectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteProtectionObjectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalIcmpLengthForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpLengthForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Lengthenable
+ */
+ protected java.lang.String localLengthenable;
+
+ /**
+ * field for Minlength
+ */
+ protected java.lang.String localMinlength;
+
+ /**
+ * field for Maxlength
+ */
+ protected java.lang.String localMaxlength;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getLengthenable() {
+ return localLengthenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Lengthenable
+ */
+ public void setLengthenable(java.lang.String param) {
+ this.localLengthenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMinlength() {
+ return localMinlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Minlength
+ */
+ public void setMinlength(java.lang.String param) {
+ this.localMinlength = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMaxlength() {
+ return localMaxlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Maxlength
+ */
+ public void setMaxlength(java.lang.String param) {
+ this.localMaxlength = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalIcmpLengthForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalIcmpLengthForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "lengthenable", xmlWriter);
+
+ if (localLengthenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localLengthenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "minlength", xmlWriter);
+
+ if (localMinlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMinlength);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "maxlength", xmlWriter);
+
+ if (localMaxlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMaxlength);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalIcmpLengthForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalIcmpLengthForUMC object = new SetDdosGlobalIcmpLengthForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalIcmpLengthForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalIcmpLengthForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "lengthenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setLengthenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "minlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMinlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "maxlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMaxlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintOtherForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintOtherForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintOtherForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintOtherForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintOtherForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintOtherForUMCResponse object = new DelFingerprintOtherForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintOtherForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintOtherForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddAnomalyDetectionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addAnomalyDetectionStrategyForUMC", "ns1");
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /**
+ * field for DetectionObjName
+ */
+ protected java.lang.String localDetectionObjName;
+
+ /**
+ * field for BandWidthThreshold
+ */
+ protected int localBandWidthThreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ this.localStrategyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionObjName() {
+ return localDetectionObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionObjName
+ */
+ public void setDetectionObjName(java.lang.String param) {
+ this.localDetectionObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBandWidthThreshold() {
+ return localBandWidthThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BandWidthThreshold
+ */
+ public void setBandWidthThreshold(int param) {
+ this.localBandWidthThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addAnomalyDetectionStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addAnomalyDetectionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionObjName", xmlWriter);
+
+ if (localDetectionObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "bandWidthThreshold", xmlWriter);
+
+ if (localBandWidthThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "bandWidthThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBandWidthThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddAnomalyDetectionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddAnomalyDetectionStrategyForUMC object = new AddAnomalyDetectionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addAnomalyDetectionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddAnomalyDetectionStrategyForUMC) 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://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectionObjName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "bandWidthThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "bandWidthThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBandWidthThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddFingerprintUdpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintUdpForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Port1
+ */
+ protected java.lang.String localPort1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Port2
+ */
+ protected java.lang.String localPort2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Port3
+ */
+ protected java.lang.String localPort3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort1() {
+ return localPort1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port1
+ */
+ public void setPort1(java.lang.String param) {
+ this.localPort1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort2() {
+ return localPort2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port2
+ */
+ public void setPort2(java.lang.String param) {
+ this.localPort2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort3() {
+ return localPort3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port3
+ */
+ public void setPort3(java.lang.String param) {
+ this.localPort3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addFingerprintUdpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addFingerprintUdpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port1", xmlWriter);
+
+ if (localPort1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port2", xmlWriter);
+
+ if (localPort2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port3", xmlWriter);
+
+ if (localPort3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddFingerprintUdpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddFingerprintUdpForUMC object = new AddFingerprintUdpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addFingerprintUdpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddFingerprintUdpForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpFragFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFragFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalTcpFragForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalTcpFragForService
+ */
+ public DdosGlobalTcpFragForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalTcpFragForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalTcpFragFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpFragFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpFragFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpFragFromUMCResponse object = new GetDdosGlobalTcpFragFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpFragFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpFragFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalTcpFragForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllAnomalyDetectionStrategyFromUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfAnomalyDetectionStrategy localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfAnomalyDetectionStrategy
+ */
+ public ArrayOfAnomalyDetectionStrategy getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfAnomalyDetectionStrategy param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllAnomalyDetectionStrategyFromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllAnomalyDetectionStrategyFromUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllAnomalyDetectionStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllAnomalyDetectionStrategyFromUMCResponse object = new GetAllAnomalyDetectionStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllAnomalyDetectionStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllAnomalyDetectionStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfAnomalyDetectionStrategy.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddFingerprintTcpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintTcpForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Port1
+ */
+ protected java.lang.String localPort1;
+
+ /**
+ * field for Flag1
+ */
+ protected java.lang.String localFlag1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Port2
+ */
+ protected java.lang.String localPort2;
+
+ /**
+ * field for Flag2
+ */
+ protected java.lang.String localFlag2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Port3
+ */
+ protected java.lang.String localPort3;
+
+ /**
+ * field for Flag3
+ */
+ protected java.lang.String localFlag3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort1() {
+ return localPort1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port1
+ */
+ public void setPort1(java.lang.String param) {
+ this.localPort1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag1() {
+ return localFlag1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag1
+ */
+ public void setFlag1(java.lang.String param) {
+ this.localFlag1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort2() {
+ return localPort2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port2
+ */
+ public void setPort2(java.lang.String param) {
+ this.localPort2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag2() {
+ return localFlag2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag2
+ */
+ public void setFlag2(java.lang.String param) {
+ this.localFlag2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort3() {
+ return localPort3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port3
+ */
+ public void setPort3(java.lang.String param) {
+ this.localPort3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag3() {
+ return localFlag3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag3
+ */
+ public void setFlag3(java.lang.String param) {
+ this.localFlag3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addFingerprintTcpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addFingerprintTcpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port1", xmlWriter);
+
+ if (localPort1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "flag1", xmlWriter);
+
+ if (localFlag1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port2", xmlWriter);
+
+ if (localPort2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "flag2", xmlWriter);
+
+ if (localFlag2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "port3", xmlWriter);
+
+ if (localPort3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "flag3", xmlWriter);
+
+ if (localFlag3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddFingerprintTcpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddFingerprintTcpForUMC object = new AddFingerprintTcpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addFingerprintTcpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddFingerprintTcpForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "flag1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "flag2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "port3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "flag3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsDomainCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainCustomV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDnsDomainCustomV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsDomainCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsDomainCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsDomainCustomV4ForUMC object = new DelDnsDomainCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsDomainCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsDomainCustomV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosCCuserGroupV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosCCuserGroupV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDdosCCuserGroupV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDdosCCuserGroupV4ForService
+ */
+ public ArrayOfDdosCCuserGroupV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDdosCCuserGroupV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosCCuserGroupV4FromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosCCuserGroupV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosCCuserGroupV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosCCuserGroupV4FromUMCResponse object = new GetDdosCCuserGroupV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosCCuserGroupV4FromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosCCuserGroupV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDdosCCuserGroupV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ProtectionObjectDataForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ProtectionObjectDataForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for CleaningDevices
+ */
+ protected java.lang.String localCleaningDevices;
+
+ /* 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 localCleaningDevicesTracker = false;
+
+ /**
+ * field for CleaningType
+ */
+ protected int localCleaningType;
+
+ /* 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 localCleaningTypeTracker = false;
+
+ /**
+ * field for DetectionDevices
+ */
+ protected java.lang.String localDetectionDevices;
+
+ /* 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 localDetectionDevicesTracker = false;
+
+ /**
+ * field for IpSegment
+ */
+ protected java.lang.String localIpSegment;
+
+ /* 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 localIpSegmentTracker = false;
+
+ /**
+ * field for IpType
+ */
+ protected int localIpType;
+
+ /* 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 localIpTypeTracker = false;
+
+ /**
+ * field for ProtectionName
+ */
+ protected java.lang.String localProtectionName;
+
+ /* 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 localProtectionNameTracker = false;
+
+ public boolean isCleaningDevicesSpecified() {
+ return localCleaningDevicesTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleaningDevices() {
+ return localCleaningDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningDevices
+ */
+ public void setCleaningDevices(java.lang.String param) {
+ localCleaningDevicesTracker = true;
+
+ this.localCleaningDevices = param;
+ }
+
+ public boolean isCleaningTypeSpecified() {
+ return localCleaningTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCleaningType() {
+ return localCleaningType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningType
+ */
+ public void setCleaningType(int param) {
+ // setting primitive attribute tracker to true
+ localCleaningTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localCleaningType = param;
+ }
+
+ public boolean isDetectionDevicesSpecified() {
+ return localDetectionDevicesTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionDevices() {
+ return localDetectionDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionDevices
+ */
+ public void setDetectionDevices(java.lang.String param) {
+ localDetectionDevicesTracker = true;
+
+ this.localDetectionDevices = param;
+ }
+
+ public boolean isIpSegmentSpecified() {
+ return localIpSegmentTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpSegment() {
+ return localIpSegment;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpSegment
+ */
+ public void setIpSegment(java.lang.String param) {
+ localIpSegmentTracker = true;
+
+ this.localIpSegment = param;
+ }
+
+ public boolean isIpTypeSpecified() {
+ return localIpTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpType() {
+ return localIpType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpType
+ */
+ public void setIpType(int param) {
+ // setting primitive attribute tracker to true
+ localIpTypeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localIpType = param;
+ }
+
+ public boolean isProtectionNameSpecified() {
+ return localProtectionNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionName() {
+ return localProtectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionName
+ */
+ public void setProtectionName(java.lang.String param) {
+ localProtectionNameTracker = true;
+
+ this.localProtectionName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ProtectionObjectDataForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ProtectionObjectDataForService", xmlWriter);
+ }
+ }
+
+ if (localCleaningDevicesTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningDevices", xmlWriter);
+
+ if (localCleaningDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleaningDevices);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCleaningTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningType", xmlWriter);
+
+ if (localCleaningType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "cleaningType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCleaningType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDetectionDevicesTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionDevices", xmlWriter);
+
+ if (localDetectionDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionDevices);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpSegmentTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ipSegment", xmlWriter);
+
+ if (localIpSegment == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpSegment);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ipType", xmlWriter);
+
+ if (localIpType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpType));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectionNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionName", xmlWriter);
+
+ if (localProtectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ProtectionObjectDataForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ProtectionObjectDataForService object = new ProtectionObjectDataForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ProtectionObjectDataForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ProtectionObjectDataForService) 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://data.ntc.dp.com", "cleaningDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "cleaningType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "cleaningType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setCleaningType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com", "detectionDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ipSegment").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpSegment(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setIpType(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com", "protectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class LinkProtectionStrategyTemplateForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "linkProtectionStrategyTemplateForUMC", "ns1");
+
+ /**
+ * field for ProtectName
+ */
+ protected java.lang.String localProtectName;
+
+ /**
+ * field for TemplateName
+ */
+ protected java.lang.String localTemplateName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectName() {
+ return localProtectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectName
+ */
+ public void setProtectName(java.lang.String param) {
+ this.localProtectName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getTemplateName() {
+ return localTemplateName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param TemplateName
+ */
+ public void setTemplateName(java.lang.String param) {
+ this.localTemplateName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":linkProtectionStrategyTemplateForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "linkProtectionStrategyTemplateForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectName", xmlWriter);
+
+ if (localProtectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "templateName", xmlWriter);
+
+ if (localTemplateName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localTemplateName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 LinkProtectionStrategyTemplateForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ LinkProtectionStrategyTemplateForUMC object = new LinkProtectionStrategyTemplateForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"linkProtectionStrategyTemplateForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (LinkProtectionStrategyTemplateForUMC) 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://service.ntc.dp.com", "protectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "templateName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setTemplateName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalUdpLengthFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpLengthFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalUdpLengthFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalUdpLengthFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalUdpLengthFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalUdpLengthFromUMC object = new GetDdosGlobalUdpLengthFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalUdpLengthFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalUdpLengthFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsSecDomainCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSecDomainCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDnsSecDomainCustomV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsSecDomainCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsSecDomainCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsSecDomainCustomV4ForUMCResponse object = new DelDnsSecDomainCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsSecDomainCustomV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsSecDomainCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintOtherForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintOtherForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintOtherForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintOtherForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintOtherForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintOtherForUMCResponse object = new ModFingerprintOtherForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintOtherForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintOtherForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DnsSecDomainGlobalV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DnsSecDomainGlobalV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DnsSecDomainGlobalV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DnsSecDomainGlobalV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DnsSecDomainGlobalV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DnsSecDomainGlobalV4ForService object = new DnsSecDomainGlobalV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DnsSecDomainGlobalV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DnsSecDomainGlobalV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosDnsRetryProtectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosDnsRetryProtectForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * field for Alertthreshold
+ */
+ protected java.lang.String localAlertthreshold;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAlertthreshold() {
+ return localAlertthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Alertthreshold
+ */
+ public void setAlertthreshold(java.lang.String param) {
+ this.localAlertthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDdosDnsRetryProtectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosDnsRetryProtectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "alertthreshold", xmlWriter);
+
+ if (localAlertthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAlertthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosDnsRetryProtectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosDnsRetryProtectForUMC object = new ModDdosDnsRetryProtectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosDnsRetryProtectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosDnsRetryProtectForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "alertthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAlertthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfBlackHoleAutoStrategyForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfBlackHoleAutoStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for BlackHoleAutoStrategyForService
+ * This was an Array!
+ */
+ protected BlackHoleAutoStrategyForService[] localBlackHoleAutoStrategyForService;
+
+ /* 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 localBlackHoleAutoStrategyForServiceTracker = false;
+
+ public boolean isBlackHoleAutoStrategyForServiceSpecified() {
+ return localBlackHoleAutoStrategyForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return BlackHoleAutoStrategyForService[]
+ */
+ public BlackHoleAutoStrategyForService[] getBlackHoleAutoStrategyForService() {
+ return localBlackHoleAutoStrategyForService;
+ }
+
+ /**
+ * validate the array for BlackHoleAutoStrategyForService
+ */
+ protected void validateBlackHoleAutoStrategyForService(
+ BlackHoleAutoStrategyForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleAutoStrategyForService
+ */
+ public void setBlackHoleAutoStrategyForService(
+ BlackHoleAutoStrategyForService[] param) {
+ validateBlackHoleAutoStrategyForService(param);
+
+ localBlackHoleAutoStrategyForServiceTracker = true;
+
+ this.localBlackHoleAutoStrategyForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param BlackHoleAutoStrategyForService
+ */
+ public void addBlackHoleAutoStrategyForService(
+ BlackHoleAutoStrategyForService param) {
+ if (localBlackHoleAutoStrategyForService == null) {
+ localBlackHoleAutoStrategyForService = new BlackHoleAutoStrategyForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localBlackHoleAutoStrategyForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localBlackHoleAutoStrategyForService);
+ list.add(param);
+ this.localBlackHoleAutoStrategyForService = (BlackHoleAutoStrategyForService[]) list.toArray(new BlackHoleAutoStrategyForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfBlackHoleAutoStrategyForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfBlackHoleAutoStrategyForService", xmlWriter);
+ }
+ }
+
+ if (localBlackHoleAutoStrategyForServiceTracker) {
+ if (localBlackHoleAutoStrategyForService != null) {
+ for (int i = 0;
+ i < localBlackHoleAutoStrategyForService.length;
+ i++) {
+ if (localBlackHoleAutoStrategyForService[i] != null) {
+ localBlackHoleAutoStrategyForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "BlackHoleAutoStrategyForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BlackHoleAutoStrategyForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BlackHoleAutoStrategyForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfBlackHoleAutoStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfBlackHoleAutoStrategyForService object = new ArrayOfBlackHoleAutoStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfBlackHoleAutoStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfBlackHoleAutoStrategyForService) 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://data.ntc.dp.com",
+ "BlackHoleAutoStrategyForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BlackHoleAutoStrategyForService.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://data.ntc.dp.com",
+ "BlackHoleAutoStrategyForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BlackHoleAutoStrategyForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setBlackHoleAutoStrategyForService((BlackHoleAutoStrategyForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ BlackHoleAutoStrategyForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddOneKeyRestore implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyRestore", "ns1");
+
+ /**
+ * field for ProtectIp
+ */
+ protected java.lang.String localProtectIp;
+
+ /**
+ * field for AttackType
+ */
+ protected java.lang.String localAttackType;
+
+ /**
+ * field for Direction
+ */
+ protected java.lang.String localDirection;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectIp() {
+ return localProtectIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectIp
+ */
+ public void setProtectIp(java.lang.String param) {
+ this.localProtectIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAttackType() {
+ return localAttackType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AttackType
+ */
+ public void setAttackType(java.lang.String param) {
+ this.localAttackType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(java.lang.String param) {
+ this.localDirection = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addOneKeyRestore", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addOneKeyRestore", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectIp", xmlWriter);
+
+ if (localProtectIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "attackType", xmlWriter);
+
+ if (localAttackType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAttackType);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDirection);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddOneKeyRestore parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddOneKeyRestore object = new AddOneKeyRestore();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addOneKeyRestore".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddOneKeyRestore) 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://service.ntc.dp.com", "protectIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "attackType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAttackType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosACProtectionForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosACProtectionForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for FixString
+ */
+ protected java.lang.String localFixString;
+
+ /**
+ * field for StartLocation
+ */
+ protected java.lang.String localStartLocation;
+
+ /**
+ * field for EndLocation
+ */
+ protected java.lang.String localEndLocation;
+
+ /**
+ * field for RegularExpression
+ */
+ protected java.lang.String localRegularExpression;
+
+ /**
+ * field for AcSip
+ */
+ protected java.lang.String localAcSip;
+
+ /**
+ * field for AcSmask
+ */
+ protected java.lang.String localAcSmask;
+
+ /**
+ * field for AcDip
+ */
+ protected java.lang.String localAcDip;
+
+ /**
+ * field for AcDmask
+ */
+ protected java.lang.String localAcDmask;
+
+ /**
+ * field for Protocol
+ */
+ protected java.lang.String localProtocol;
+
+ /**
+ * field for SrcPortMin
+ */
+ protected java.lang.String localSrcPortMin;
+
+ /**
+ * field for SrcPortMax
+ */
+ protected java.lang.String localSrcPortMax;
+
+ /**
+ * field for DstPortMin
+ */
+ protected java.lang.String localDstPortMin;
+
+ /**
+ * field for DstPortMax
+ */
+ protected java.lang.String localDstPortMax;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFixString() {
+ return localFixString;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FixString
+ */
+ public void setFixString(java.lang.String param) {
+ this.localFixString = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStartLocation() {
+ return localStartLocation;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StartLocation
+ */
+ public void setStartLocation(java.lang.String param) {
+ this.localStartLocation = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEndLocation() {
+ return localEndLocation;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param EndLocation
+ */
+ public void setEndLocation(java.lang.String param) {
+ this.localEndLocation = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getRegularExpression() {
+ return localRegularExpression;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param RegularExpression
+ */
+ public void setRegularExpression(java.lang.String param) {
+ this.localRegularExpression = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcSip() {
+ return localAcSip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcSip
+ */
+ public void setAcSip(java.lang.String param) {
+ this.localAcSip = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcSmask() {
+ return localAcSmask;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcSmask
+ */
+ public void setAcSmask(java.lang.String param) {
+ this.localAcSmask = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcDip() {
+ return localAcDip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcDip
+ */
+ public void setAcDip(java.lang.String param) {
+ this.localAcDip = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcDmask() {
+ return localAcDmask;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcDmask
+ */
+ public void setAcDmask(java.lang.String param) {
+ this.localAcDmask = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtocol() {
+ return localProtocol;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protocol
+ */
+ public void setProtocol(java.lang.String param) {
+ this.localProtocol = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSrcPortMin() {
+ return localSrcPortMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SrcPortMin
+ */
+ public void setSrcPortMin(java.lang.String param) {
+ this.localSrcPortMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSrcPortMax() {
+ return localSrcPortMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SrcPortMax
+ */
+ public void setSrcPortMax(java.lang.String param) {
+ this.localSrcPortMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDstPortMin() {
+ return localDstPortMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DstPortMin
+ */
+ public void setDstPortMin(java.lang.String param) {
+ this.localDstPortMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDstPortMax() {
+ return localDstPortMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DstPortMax
+ */
+ public void setDstPortMax(java.lang.String param) {
+ this.localDstPortMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosACProtectionForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosACProtectionForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "fixString", xmlWriter);
+
+ if (localFixString == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFixString);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "startLocation", xmlWriter);
+
+ if (localStartLocation == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStartLocation);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "endLocation", xmlWriter);
+
+ if (localEndLocation == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEndLocation);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "regularExpression", xmlWriter);
+
+ if (localRegularExpression == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localRegularExpression);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acSip", xmlWriter);
+
+ if (localAcSip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcSip);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acSmask", xmlWriter);
+
+ if (localAcSmask == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcSmask);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acDip", xmlWriter);
+
+ if (localAcDip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcDip);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acDmask", xmlWriter);
+
+ if (localAcDmask == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcDmask);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protocol", xmlWriter);
+
+ if (localProtocol == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtocol);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "srcPortMin", xmlWriter);
+
+ if (localSrcPortMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSrcPortMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "srcPortMax", xmlWriter);
+
+ if (localSrcPortMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSrcPortMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dstPortMin", xmlWriter);
+
+ if (localDstPortMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDstPortMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dstPortMax", xmlWriter);
+
+ if (localDstPortMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDstPortMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosACProtectionForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosACProtectionForUMC object = new AddDdosACProtectionForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosACProtectionForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosACProtectionForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "fixString").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFixString(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "startLocation").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStartLocation(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "endLocation").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEndLocation(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "regularExpression").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setRegularExpression(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acSip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcSip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acSmask").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcSmask(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acDip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcDip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acDmask").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcDmask(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protocol").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtocol(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "srcPortMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSrcPortMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "srcPortMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSrcPortMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dstPortMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDstPortMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dstPortMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDstPortMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpStateFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpStateFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalTcpStateForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalTcpStateForService
+ */
+ public DdosGlobalTcpStateForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalTcpStateForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalTcpStateFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpStateFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpStateFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpStateFromUMCResponse object = new GetDdosGlobalTcpStateFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpStateFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpStateFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalTcpStateForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalIcmpPayloadFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpPayloadFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalIcmpPayloadForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalIcmpPayloadForService
+ */
+ public DdosGlobalIcmpPayloadForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalIcmpPayloadForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalIcmpPayloadFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalIcmpPayloadFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalIcmpPayloadFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalIcmpPayloadFromUMCResponse object = new GetDdosGlobalIcmpPayloadFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalIcmpPayloadFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalIcmpPayloadFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalIcmpPayloadForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpFlagFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFlagFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalTcpFlagForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalTcpFlagForService
+ */
+ public DdosGlobalTcpFlagForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalTcpFlagForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalTcpFlagFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpFlagFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpFlagFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpFlagFromUMCResponse object = new GetDdosGlobalTcpFlagFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpFlagFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpFlagFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalTcpFlagForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StartAbnormalTaskForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":startAbnormalTaskForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "startAbnormalTaskForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StartAbnormalTaskForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StartAbnormalTaskForUMCResponse object = new StartAbnormalTaskForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"startAbnormalTaskForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StartAbnormalTaskForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBypassManualTractionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBypassManualTractionStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for ProtectName
+ */
+ protected java.lang.String localProtectName;
+
+ /**
+ * field for IpRange
+ */
+ protected java.lang.String localIpRange;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectName() {
+ return localProtectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectName
+ */
+ public void setProtectName(java.lang.String param) {
+ this.localProtectName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpRange() {
+ return localIpRange;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpRange
+ */
+ public void setIpRange(java.lang.String param) {
+ this.localIpRange = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modBypassManualTractionStrategyForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBypassManualTractionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectName", xmlWriter);
+
+ if (localProtectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipRange", xmlWriter);
+
+ if (localIpRange == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpRange);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBypassManualTractionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBypassManualTractionStrategyForUMC object = new ModBypassManualTractionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBypassManualTractionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBypassManualTractionStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipRange").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpRange(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelBypassManualTractionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delBypassManualTractionStrategyForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delBypassManualTractionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelBypassManualTractionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelBypassManualTractionStrategyForUMC object = new DelBypassManualTractionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delBypassManualTractionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelBypassManualTractionStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetUriCusProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriCusProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for URI
+ */
+ protected java.lang.String localURI;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getURI() {
+ return localURI;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param URI
+ */
+ public void setURI(java.lang.String param) {
+ this.localURI = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosHttpGetUriCusProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetUriCusProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "URI", xmlWriter);
+
+ if (localURI == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localURI);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetUriCusProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetUriCusProV4ForUMC object = new AddDdosHttpGetUriCusProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetUriCusProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetUriCusProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "URI").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setURI(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class BlackHoleAutoStrategyForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = BlackHoleAutoStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for BlackHoleThreshold
+ */
+ protected int localBlackHoleThreshold;
+
+ /* 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 localBlackHoleThresholdTracker = false;
+
+ /**
+ * field for BlackHoleTime
+ */
+ protected int localBlackHoleTime;
+
+ /* 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 localBlackHoleTimeTracker = false;
+
+ /**
+ * field for DetectMode
+ */
+ protected int localDetectMode;
+
+ /* 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 localDetectModeTracker = false;
+
+ /**
+ * field for DetectName
+ */
+ protected java.lang.String localDetectName;
+
+ /* 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 localDetectNameTracker = false;
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /* 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 localPolicyNameTracker = false;
+
+ public boolean isBlackHoleThresholdSpecified() {
+ return localBlackHoleThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBlackHoleThreshold() {
+ return localBlackHoleThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleThreshold
+ */
+ public void setBlackHoleThreshold(int param) {
+ // setting primitive attribute tracker to true
+ localBlackHoleThresholdTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localBlackHoleThreshold = param;
+ }
+
+ public boolean isBlackHoleTimeSpecified() {
+ return localBlackHoleTimeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBlackHoleTime() {
+ return localBlackHoleTime;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleTime
+ */
+ public void setBlackHoleTime(int param) {
+ // setting primitive attribute tracker to true
+ localBlackHoleTimeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localBlackHoleTime = param;
+ }
+
+ public boolean isDetectModeSpecified() {
+ return localDetectModeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDetectMode() {
+ return localDetectMode;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectMode
+ */
+ public void setDetectMode(int param) {
+ // setting primitive attribute tracker to true
+ localDetectModeTracker = param != java.lang.Integer.MIN_VALUE;
+
+ this.localDetectMode = param;
+ }
+
+ public boolean isDetectNameSpecified() {
+ return localDetectNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectName() {
+ return localDetectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectName
+ */
+ public void setDetectName(java.lang.String param) {
+ localDetectNameTracker = true;
+
+ this.localDetectName = param;
+ }
+
+ public boolean isPolicyNameSpecified() {
+ return localPolicyNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ localPolicyNameTracker = true;
+
+ this.localPolicyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":BlackHoleAutoStrategyForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "BlackHoleAutoStrategyForService", xmlWriter);
+ }
+ }
+
+ if (localBlackHoleThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "blackHoleThreshold",
+ xmlWriter);
+
+ if (localBlackHoleThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "blackHoleThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBlackHoleThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localBlackHoleTimeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "blackHoleTime", xmlWriter);
+
+ if (localBlackHoleTime == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "blackHoleTime cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBlackHoleTime));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDetectModeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "detectMode", xmlWriter);
+
+ if (localDetectMode == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "detectMode cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDetectMode));
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDetectNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "detectName", xmlWriter);
+
+ if (localDetectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPolicyNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 BlackHoleAutoStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ BlackHoleAutoStrategyForService object = new BlackHoleAutoStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"BlackHoleAutoStrategyForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (BlackHoleAutoStrategyForService) 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://data.ntc.dp.com", "blackHoleThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "blackHoleThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBlackHoleThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setBlackHoleThreshold(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com", "blackHoleTime").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "blackHoleTime" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBlackHoleTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setBlackHoleTime(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com", "detectMode").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "detectMode" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectMode(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ object.setDetectMode(java.lang.Integer.MIN_VALUE);
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com", "detectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetUriGloProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriGloProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDdosHttpGetUriGloProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetUriGloProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetUriGloProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetUriGloProV4ForUMC object = new ModDdosHttpGetUriGloProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetUriGloProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetUriGloProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalUdpLengthForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpLengthForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalUdpLengthForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalUdpLengthForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalUdpLengthForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalUdpLengthForUMCResponse object = new SetDdosGlobalUdpLengthForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalUdpLengthForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalUdpLengthForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddOneKeyRestoreResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyRestoreResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addOneKeyRestoreResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addOneKeyRestoreResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddOneKeyRestoreResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddOneKeyRestoreResponse object = new AddOneKeyRestoreResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addOneKeyRestoreResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddOneKeyRestoreResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelAnomalyDetectionStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delAnomalyDetectionStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delAnomalyDetectionStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delAnomalyDetectionStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelAnomalyDetectionStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelAnomalyDetectionStrategyForUMCResponse object = new DelAnomalyDetectionStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delAnomalyDetectionStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelAnomalyDetectionStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAnomalyDetectionStrategyFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAnomalyDetectionStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected AnomalyDetectionStrategy localOut;
+
+ /**
+ * Auto generated getter method
+ * @return AnomalyDetectionStrategy
+ */
+ public AnomalyDetectionStrategy getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(AnomalyDetectionStrategy param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAnomalyDetectionStrategyFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAnomalyDetectionStrategyFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAnomalyDetectionStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAnomalyDetectionStrategyFromUMCResponse object = new GetAnomalyDetectionStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAnomalyDetectionStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAnomalyDetectionStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(AnomalyDetectionStrategy.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintIcmpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintIcmpForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintIcmpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintIcmpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintIcmpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintIcmpForUMC object = new ModFingerprintIcmpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintIcmpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintIcmpForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllDetectionObjectFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectionObjectFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getAllDetectionObjectFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllDetectionObjectFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllDetectionObjectFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllDetectionObjectFromUMC object = new GetAllDetectionObjectFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllDetectionObjectFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllDetectionObjectFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsSecDomainCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainCustomV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Domain
+ */
+ protected java.lang.String localDomain;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDnsSecDomainCustomV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsSecDomainCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "domain", xmlWriter);
+
+ if (localDomain == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDomain);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsSecDomainCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsSecDomainCustomV4ForUMC object = new ModDnsSecDomainCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsSecDomainCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsSecDomainCustomV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "domain").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDomain(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelBlackAndWhiteListProtection implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackAndWhiteListProtection", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delBlackAndWhiteListProtection",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delBlackAndWhiteListProtection", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelBlackAndWhiteListProtection parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelBlackAndWhiteListProtection object = new DelBlackAndWhiteListProtection();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delBlackAndWhiteListProtection".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelBlackAndWhiteListProtection) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosHttpGetSipGloProV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosHttpGetSipGloProV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ /**
+ * field for Type
+ */
+ protected java.lang.String localType;
+
+ /* 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 localTypeTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ public boolean isTypeSpecified() {
+ return localTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getType() {
+ return localType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Type
+ */
+ public void setType(java.lang.String param) {
+ localTypeTracker = true;
+
+ this.localType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosHttpGetSipGloProV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosHttpGetSipGloProV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "type", xmlWriter);
+
+ if (localType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localType);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosHttpGetSipGloProV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosHttpGetSipGloProV4ForService object = new DdosHttpGetSipGloProV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosHttpGetSipGloProV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosHttpGetSipGloProV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "type").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalIcmpPayloadForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpPayloadForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalIcmpPayloadForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalIcmpPayloadForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalIcmpPayloadForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalIcmpPayloadForUMCResponse object = new SetDdosGlobalIcmpPayloadForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalIcmpPayloadForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalIcmpPayloadForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosHttpGetSipGloProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosHttpGetSipGloProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDdosHttpGetSipGloProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosHttpGetSipGloProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosHttpGetSipGloProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosHttpGetSipGloProV4ForUMCResponse object = new DelDdosHttpGetSipGloProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosHttpGetSipGloProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosHttpGetSipGloProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfBlackAndWhiteListDataForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfBlackAndWhiteListDataForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for BlackAndWhiteListDataForService
+ * This was an Array!
+ */
+ protected BlackAndWhiteListDataForService[] localBlackAndWhiteListDataForService;
+
+ /* 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 localBlackAndWhiteListDataForServiceTracker = false;
+
+ public boolean isBlackAndWhiteListDataForServiceSpecified() {
+ return localBlackAndWhiteListDataForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return BlackAndWhiteListDataForService[]
+ */
+ public BlackAndWhiteListDataForService[] getBlackAndWhiteListDataForService() {
+ return localBlackAndWhiteListDataForService;
+ }
+
+ /**
+ * validate the array for BlackAndWhiteListDataForService
+ */
+ protected void validateBlackAndWhiteListDataForService(
+ BlackAndWhiteListDataForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackAndWhiteListDataForService
+ */
+ public void setBlackAndWhiteListDataForService(
+ BlackAndWhiteListDataForService[] param) {
+ validateBlackAndWhiteListDataForService(param);
+
+ localBlackAndWhiteListDataForServiceTracker = true;
+
+ this.localBlackAndWhiteListDataForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param BlackAndWhiteListDataForService
+ */
+ public void addBlackAndWhiteListDataForService(
+ BlackAndWhiteListDataForService param) {
+ if (localBlackAndWhiteListDataForService == null) {
+ localBlackAndWhiteListDataForService = new BlackAndWhiteListDataForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localBlackAndWhiteListDataForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localBlackAndWhiteListDataForService);
+ list.add(param);
+ this.localBlackAndWhiteListDataForService = (BlackAndWhiteListDataForService[]) list.toArray(new BlackAndWhiteListDataForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfBlackAndWhiteListDataForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfBlackAndWhiteListDataForService", xmlWriter);
+ }
+ }
+
+ if (localBlackAndWhiteListDataForServiceTracker) {
+ if (localBlackAndWhiteListDataForService != null) {
+ for (int i = 0;
+ i < localBlackAndWhiteListDataForService.length;
+ i++) {
+ if (localBlackAndWhiteListDataForService[i] != null) {
+ localBlackAndWhiteListDataForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "BlackAndWhiteListDataForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BlackAndWhiteListDataForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BlackAndWhiteListDataForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfBlackAndWhiteListDataForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfBlackAndWhiteListDataForService object = new ArrayOfBlackAndWhiteListDataForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfBlackAndWhiteListDataForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfBlackAndWhiteListDataForService) 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://data.ntc.dp.com",
+ "BlackAndWhiteListDataForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BlackAndWhiteListDataForService.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://data.ntc.dp.com",
+ "BlackAndWhiteListDataForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BlackAndWhiteListDataForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setBlackAndWhiteListDataForService((BlackAndWhiteListDataForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ BlackAndWhiteListDataForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DnsSipCustomV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DnsSipCustomV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ /**
+ * field for Sipend
+ */
+ protected java.lang.String localSipend;
+
+ /* 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 localSipendTracker = false;
+
+ /**
+ * field for Sipstart
+ */
+ protected java.lang.String localSipstart;
+
+ /* 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 localSipstartTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ public boolean isSipendSpecified() {
+ return localSipendTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipend() {
+ return localSipend;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Sipend
+ */
+ public void setSipend(java.lang.String param) {
+ localSipendTracker = true;
+
+ this.localSipend = param;
+ }
+
+ public boolean isSipstartSpecified() {
+ return localSipstartTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipstart() {
+ return localSipstart;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Sipstart
+ */
+ public void setSipstart(java.lang.String param) {
+ localSipstartTracker = true;
+
+ this.localSipstart = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DnsSipCustomV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DnsSipCustomV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSipendTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "sipend", xmlWriter);
+
+ if (localSipend == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipend);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSipstartTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "sipstart", xmlWriter);
+
+ if (localSipstart == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipstart);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DnsSipCustomV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DnsSipCustomV4ForService object = new DnsSipCustomV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DnsSipCustomV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DnsSipCustomV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "sipend").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipend(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "sipstart").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipstart(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalSynFloodForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalSynFloodForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalSynFloodForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalSynFloodForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalSynFloodForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalSynFloodForUMCResponse object = new SetDdosGlobalSynFloodForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalSynFloodForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalSynFloodForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DisableProtectionStrategyTemplateForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "disableProtectionStrategyTemplateForUMC", "ns1");
+
+ /**
+ * field for ProtectName
+ */
+ protected java.lang.String localProtectName;
+
+ /**
+ * field for TemplateName
+ */
+ protected java.lang.String localTemplateName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectName() {
+ return localProtectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectName
+ */
+ public void setProtectName(java.lang.String param) {
+ this.localProtectName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getTemplateName() {
+ return localTemplateName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param TemplateName
+ */
+ public void setTemplateName(java.lang.String param) {
+ this.localTemplateName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":disableProtectionStrategyTemplateForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "disableProtectionStrategyTemplateForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectName", xmlWriter);
+
+ if (localProtectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "templateName", xmlWriter);
+
+ if (localTemplateName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localTemplateName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DisableProtectionStrategyTemplateForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DisableProtectionStrategyTemplateForUMC object = new DisableProtectionStrategyTemplateForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"disableProtectionStrategyTemplateForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DisableProtectionStrategyTemplateForUMC) 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://service.ntc.dp.com", "protectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "templateName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setTemplateName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalUdpPayloadForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpPayloadForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalUdpPayloadForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalUdpPayloadForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalUdpPayloadForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalUdpPayloadForUMCResponse object = new SetDdosGlobalUdpPayloadForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalUdpPayloadForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalUdpPayloadForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintUdpForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintUdpForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintUdpForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintUdpForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintUdpForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintUdpForUMC object = new DelFingerprintUdpForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintUdpForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintUdpForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDdosDnsRetryProtectForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDdosDnsRetryProtectForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DdosDnsRetryProtectForService
+ * This was an Array!
+ */
+ protected DdosDnsRetryProtectForService[] localDdosDnsRetryProtectForService;
+
+ /* 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 localDdosDnsRetryProtectForServiceTracker = false;
+
+ public boolean isDdosDnsRetryProtectForServiceSpecified() {
+ return localDdosDnsRetryProtectForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DdosDnsRetryProtectForService[]
+ */
+ public DdosDnsRetryProtectForService[] getDdosDnsRetryProtectForService() {
+ return localDdosDnsRetryProtectForService;
+ }
+
+ /**
+ * validate the array for DdosDnsRetryProtectForService
+ */
+ protected void validateDdosDnsRetryProtectForService(
+ DdosDnsRetryProtectForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DdosDnsRetryProtectForService
+ */
+ public void setDdosDnsRetryProtectForService(
+ DdosDnsRetryProtectForService[] param) {
+ validateDdosDnsRetryProtectForService(param);
+
+ localDdosDnsRetryProtectForServiceTracker = true;
+
+ this.localDdosDnsRetryProtectForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DdosDnsRetryProtectForService
+ */
+ public void addDdosDnsRetryProtectForService(
+ DdosDnsRetryProtectForService param) {
+ if (localDdosDnsRetryProtectForService == null) {
+ localDdosDnsRetryProtectForService = new DdosDnsRetryProtectForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDdosDnsRetryProtectForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDdosDnsRetryProtectForService);
+ list.add(param);
+ this.localDdosDnsRetryProtectForService = (DdosDnsRetryProtectForService[]) list.toArray(new DdosDnsRetryProtectForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDdosDnsRetryProtectForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDdosDnsRetryProtectForService", xmlWriter);
+ }
+ }
+
+ if (localDdosDnsRetryProtectForServiceTracker) {
+ if (localDdosDnsRetryProtectForService != null) {
+ for (int i = 0;
+ i < localDdosDnsRetryProtectForService.length;
+ i++) {
+ if (localDdosDnsRetryProtectForService[i] != null) {
+ localDdosDnsRetryProtectForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DdosDnsRetryProtectForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosDnsRetryProtectForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosDnsRetryProtectForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDdosDnsRetryProtectForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDdosDnsRetryProtectForService object = new ArrayOfDdosDnsRetryProtectForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDdosDnsRetryProtectForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDdosDnsRetryProtectForService) 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://data.ntc.dp.com",
+ "DdosDnsRetryProtectForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosDnsRetryProtectForService.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://data.ntc.dp.com",
+ "DdosDnsRetryProtectForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosDnsRetryProtectForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDdosDnsRetryProtectForService((DdosDnsRetryProtectForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DdosDnsRetryProtectForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class FingerprintIcmpForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = FingerprintIcmpForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /* 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 localCustom1Tracker = false;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /* 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 localCustom2Tracker = false;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /* 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 localCustom3Tracker = false;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /* 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 localEnable1Tracker = false;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /* 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 localEnable2Tracker = false;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /* 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 localEnable3Tracker = false;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /* 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 localIp1Tracker = false;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /* 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 localIp2Tracker = false;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /* 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 localIp3Tracker = false;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /* 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 localKeylength1Tracker = false;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /* 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 localKeylength2Tracker = false;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /* 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 localKeylength3Tracker = false;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /* 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 localKeyoffset1Tracker = false;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /* 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 localKeyoffset2Tracker = false;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /* 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 localKeyoffset3Tracker = false;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /* 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 localKeytype1Tracker = false;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /* 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 localKeytype2Tracker = false;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /* 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 localKeytype3Tracker = false;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /* 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 localMask1Tracker = false;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /* 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 localMask2Tracker = false;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /* 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 localMask3Tracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /* 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 localThresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isCustom1Specified() {
+ return localCustom1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ localCustom1Tracker = true;
+
+ this.localCustom1 = param;
+ }
+
+ public boolean isCustom2Specified() {
+ return localCustom2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ localCustom2Tracker = true;
+
+ this.localCustom2 = param;
+ }
+
+ public boolean isCustom3Specified() {
+ return localCustom3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ localCustom3Tracker = true;
+
+ this.localCustom3 = param;
+ }
+
+ public boolean isEnable1Specified() {
+ return localEnable1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ localEnable1Tracker = true;
+
+ this.localEnable1 = param;
+ }
+
+ public boolean isEnable2Specified() {
+ return localEnable2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ localEnable2Tracker = true;
+
+ this.localEnable2 = param;
+ }
+
+ public boolean isEnable3Specified() {
+ return localEnable3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ localEnable3Tracker = true;
+
+ this.localEnable3 = param;
+ }
+
+ public boolean isIp1Specified() {
+ return localIp1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ localIp1Tracker = true;
+
+ this.localIp1 = param;
+ }
+
+ public boolean isIp2Specified() {
+ return localIp2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ localIp2Tracker = true;
+
+ this.localIp2 = param;
+ }
+
+ public boolean isIp3Specified() {
+ return localIp3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ localIp3Tracker = true;
+
+ this.localIp3 = param;
+ }
+
+ public boolean isKeylength1Specified() {
+ return localKeylength1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ localKeylength1Tracker = true;
+
+ this.localKeylength1 = param;
+ }
+
+ public boolean isKeylength2Specified() {
+ return localKeylength2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ localKeylength2Tracker = true;
+
+ this.localKeylength2 = param;
+ }
+
+ public boolean isKeylength3Specified() {
+ return localKeylength3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ localKeylength3Tracker = true;
+
+ this.localKeylength3 = param;
+ }
+
+ public boolean isKeyoffset1Specified() {
+ return localKeyoffset1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ localKeyoffset1Tracker = true;
+
+ this.localKeyoffset1 = param;
+ }
+
+ public boolean isKeyoffset2Specified() {
+ return localKeyoffset2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ localKeyoffset2Tracker = true;
+
+ this.localKeyoffset2 = param;
+ }
+
+ public boolean isKeyoffset3Specified() {
+ return localKeyoffset3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ localKeyoffset3Tracker = true;
+
+ this.localKeyoffset3 = param;
+ }
+
+ public boolean isKeytype1Specified() {
+ return localKeytype1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ localKeytype1Tracker = true;
+
+ this.localKeytype1 = param;
+ }
+
+ public boolean isKeytype2Specified() {
+ return localKeytype2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ localKeytype2Tracker = true;
+
+ this.localKeytype2 = param;
+ }
+
+ public boolean isKeytype3Specified() {
+ return localKeytype3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ localKeytype3Tracker = true;
+
+ this.localKeytype3 = param;
+ }
+
+ public boolean isMask1Specified() {
+ return localMask1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ localMask1Tracker = true;
+
+ this.localMask1 = param;
+ }
+
+ public boolean isMask2Specified() {
+ return localMask2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ localMask2Tracker = true;
+
+ this.localMask2 = param;
+ }
+
+ public boolean isMask3Specified() {
+ return localMask3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ localMask3Tracker = true;
+
+ this.localMask3 = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isThresholdSpecified() {
+ return localThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ localThresholdTracker = true;
+
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":FingerprintIcmpForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "FingerprintIcmpForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 FingerprintIcmpForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ FingerprintIcmpForService object = new FingerprintIcmpForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"FingerprintIcmpForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (FingerprintIcmpForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddOneKeyDetectionResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyDetectionResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addOneKeyDetectionResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addOneKeyDetectionResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddOneKeyDetectionResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddOneKeyDetectionResponse object = new AddOneKeyDetectionResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addOneKeyDetectionResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddOneKeyDetectionResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintOtherForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintOtherForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintOtherForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintOtherForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintOtherForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintOtherForUMC object = new DelFingerprintOtherForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintOtherForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintOtherForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalOtherFragForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalOtherFragForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Otherenable
+ */
+ protected java.lang.String localOtherenable;
+
+ /**
+ * field for Otherthreshold
+ */
+ protected java.lang.String localOtherthreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getOtherenable() {
+ return localOtherenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Otherenable
+ */
+ public void setOtherenable(java.lang.String param) {
+ this.localOtherenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getOtherthreshold() {
+ return localOtherthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Otherthreshold
+ */
+ public void setOtherthreshold(java.lang.String param) {
+ this.localOtherthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalOtherFragForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalOtherFragForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "otherenable", xmlWriter);
+
+ if (localOtherenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localOtherenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "otherthreshold", xmlWriter);
+
+ if (localOtherthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localOtherthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalOtherFragForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalOtherFragForUMC object = new SetDdosGlobalOtherFragForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalOtherFragForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalOtherFragForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "otherenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setOtherenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "otherthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setOtherthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopBypassManualTractionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBypassManualTractionStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for CleaningDevices
+ */
+ protected java.lang.String localCleaningDevices;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleaningDevices() {
+ return localCleaningDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningDevices
+ */
+ public void setCleaningDevices(java.lang.String param) {
+ this.localCleaningDevices = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":stopBypassManualTractionStrategyForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopBypassManualTractionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningDevices", xmlWriter);
+
+ if (localCleaningDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleaningDevices);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopBypassManualTractionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopBypassManualTractionStrategyForUMC object = new StopBypassManualTractionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopBypassManualTractionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopBypassManualTractionStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSecDomainGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDnsSecDomainGlobalV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSecDomainGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSecDomainGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSecDomainGlobalV4ForUMC object = new AddDnsSecDomainGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSecDomainGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSecDomainGlobalV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintUdpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintUdpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintUdpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintUdpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintUdpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintUdpForUMCResponse object = new ModFingerprintUdpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintUdpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintUdpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModifyProtectionObjectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyProtectionObjectForUMC", "ns1");
+
+ /**
+ * field for ProtectionName
+ */
+ protected java.lang.String localProtectionName;
+
+ /**
+ * field for IpSegment
+ */
+ protected java.lang.String localIpSegment;
+
+ /**
+ * field for IpType
+ */
+ protected int localIpType;
+
+ /**
+ * field for CleaningType
+ */
+ protected int localCleaningType;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionName() {
+ return localProtectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionName
+ */
+ public void setProtectionName(java.lang.String param) {
+ this.localProtectionName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpSegment() {
+ return localIpSegment;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpSegment
+ */
+ public void setIpSegment(java.lang.String param) {
+ this.localIpSegment = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpType() {
+ return localIpType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpType
+ */
+ public void setIpType(int param) {
+ this.localIpType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCleaningType() {
+ return localCleaningType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningType
+ */
+ public void setCleaningType(int param) {
+ this.localCleaningType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modifyProtectionObjectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modifyProtectionObjectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionName", xmlWriter);
+
+ if (localProtectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipSegment", xmlWriter);
+
+ if (localIpSegment == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpSegment);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipType", xmlWriter);
+
+ if (localIpType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningType", xmlWriter);
+
+ if (localCleaningType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "cleaningType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCleaningType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModifyProtectionObjectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModifyProtectionObjectForUMC object = new ModifyProtectionObjectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modifyProtectionObjectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModifyProtectionObjectForUMC) 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://service.ntc.dp.com", "protectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipSegment").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpSegment(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "cleaningType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopAbnormalTaskWithSpecificDeviceForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskWithSpecificDeviceForUMC", "ns1");
+
+ /**
+ * field for AbnormalIp
+ */
+ protected java.lang.String localAbnormalIp;
+
+ /**
+ * field for AttackType
+ */
+ protected int localAttackType;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /**
+ * field for CleanDeviceIps
+ */
+ protected java.lang.String localCleanDeviceIps;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAbnormalIp() {
+ return localAbnormalIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AbnormalIp
+ */
+ public void setAbnormalIp(java.lang.String param) {
+ this.localAbnormalIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAttackType() {
+ return localAttackType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AttackType
+ */
+ public void setAttackType(int param) {
+ this.localAttackType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ this.localDirection = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleanDeviceIps() {
+ return localCleanDeviceIps;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleanDeviceIps
+ */
+ public void setCleanDeviceIps(java.lang.String param) {
+ this.localCleanDeviceIps = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":stopAbnormalTaskWithSpecificDeviceForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopAbnormalTaskWithSpecificDeviceForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "abnormalIp", xmlWriter);
+
+ if (localAbnormalIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAbnormalIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "attackType", xmlWriter);
+
+ if (localAttackType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "attackType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAttackType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleanDeviceIps", xmlWriter);
+
+ if (localCleanDeviceIps == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleanDeviceIps);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopAbnormalTaskWithSpecificDeviceForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopAbnormalTaskWithSpecificDeviceForUMC object = new StopAbnormalTaskWithSpecificDeviceForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopAbnormalTaskWithSpecificDeviceForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopAbnormalTaskWithSpecificDeviceForUMC) 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://service.ntc.dp.com", "abnormalIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAbnormalIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "attackType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "attackType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAttackType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleanDeviceIps").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleanDeviceIps(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDdosHttpGetSipGloProV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDdosHttpGetSipGloProV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DdosHttpGetSipGloProV4ForService
+ * This was an Array!
+ */
+ protected DdosHttpGetSipGloProV4ForService[] localDdosHttpGetSipGloProV4ForService;
+
+ /* 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 localDdosHttpGetSipGloProV4ForServiceTracker = false;
+
+ public boolean isDdosHttpGetSipGloProV4ForServiceSpecified() {
+ return localDdosHttpGetSipGloProV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DdosHttpGetSipGloProV4ForService[]
+ */
+ public DdosHttpGetSipGloProV4ForService[] getDdosHttpGetSipGloProV4ForService() {
+ return localDdosHttpGetSipGloProV4ForService;
+ }
+
+ /**
+ * validate the array for DdosHttpGetSipGloProV4ForService
+ */
+ protected void validateDdosHttpGetSipGloProV4ForService(
+ DdosHttpGetSipGloProV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DdosHttpGetSipGloProV4ForService
+ */
+ public void setDdosHttpGetSipGloProV4ForService(
+ DdosHttpGetSipGloProV4ForService[] param) {
+ validateDdosHttpGetSipGloProV4ForService(param);
+
+ localDdosHttpGetSipGloProV4ForServiceTracker = true;
+
+ this.localDdosHttpGetSipGloProV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DdosHttpGetSipGloProV4ForService
+ */
+ public void addDdosHttpGetSipGloProV4ForService(
+ DdosHttpGetSipGloProV4ForService param) {
+ if (localDdosHttpGetSipGloProV4ForService == null) {
+ localDdosHttpGetSipGloProV4ForService = new DdosHttpGetSipGloProV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDdosHttpGetSipGloProV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDdosHttpGetSipGloProV4ForService);
+ list.add(param);
+ this.localDdosHttpGetSipGloProV4ForService = (DdosHttpGetSipGloProV4ForService[]) list.toArray(new DdosHttpGetSipGloProV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDdosHttpGetSipGloProV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDdosHttpGetSipGloProV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDdosHttpGetSipGloProV4ForServiceTracker) {
+ if (localDdosHttpGetSipGloProV4ForService != null) {
+ for (int i = 0;
+ i < localDdosHttpGetSipGloProV4ForService.length;
+ i++) {
+ if (localDdosHttpGetSipGloProV4ForService[i] != null) {
+ localDdosHttpGetSipGloProV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DdosHttpGetSipGloProV4ForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosHttpGetSipGloProV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosHttpGetSipGloProV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDdosHttpGetSipGloProV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDdosHttpGetSipGloProV4ForService object = new ArrayOfDdosHttpGetSipGloProV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDdosHttpGetSipGloProV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDdosHttpGetSipGloProV4ForService) 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://data.ntc.dp.com",
+ "DdosHttpGetSipGloProV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosHttpGetSipGloProV4ForService.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://data.ntc.dp.com",
+ "DdosHttpGetSipGloProV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosHttpGetSipGloProV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDdosHttpGetSipGloProV4ForService((DdosHttpGetSipGloProV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DdosHttpGetSipGloProV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalUdpPayloadForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalUdpPayloadForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for PayloadOffsetMax
+ */
+ protected java.lang.String localPayloadOffsetMax;
+
+ /* 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 localPayloadOffsetMaxTracker = false;
+
+ /**
+ * field for PayloadOffsetMin
+ */
+ protected java.lang.String localPayloadOffsetMin;
+
+ /* 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 localPayloadOffsetMinTracker = false;
+
+ /**
+ * field for PayloadThreshold
+ */
+ protected java.lang.String localPayloadThreshold;
+
+ /* 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 localPayloadThresholdTracker = false;
+
+ /**
+ * field for Payloadcontentenable
+ */
+ protected java.lang.String localPayloadcontentenable;
+
+ /* 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 localPayloadcontentenableTracker = false;
+
+ /**
+ * field for Payloademptyenable
+ */
+ protected java.lang.String localPayloademptyenable;
+
+ /* 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 localPayloademptyenableTracker = false;
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isPayloadOffsetMaxSpecified() {
+ return localPayloadOffsetMaxTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMax() {
+ return localPayloadOffsetMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMax
+ */
+ public void setPayloadOffsetMax(java.lang.String param) {
+ localPayloadOffsetMaxTracker = true;
+
+ this.localPayloadOffsetMax = param;
+ }
+
+ public boolean isPayloadOffsetMinSpecified() {
+ return localPayloadOffsetMinTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMin() {
+ return localPayloadOffsetMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMin
+ */
+ public void setPayloadOffsetMin(java.lang.String param) {
+ localPayloadOffsetMinTracker = true;
+
+ this.localPayloadOffsetMin = param;
+ }
+
+ public boolean isPayloadThresholdSpecified() {
+ return localPayloadThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadThreshold() {
+ return localPayloadThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadThreshold
+ */
+ public void setPayloadThreshold(java.lang.String param) {
+ localPayloadThresholdTracker = true;
+
+ this.localPayloadThreshold = param;
+ }
+
+ public boolean isPayloadcontentenableSpecified() {
+ return localPayloadcontentenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadcontentenable() {
+ return localPayloadcontentenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Payloadcontentenable
+ */
+ public void setPayloadcontentenable(java.lang.String param) {
+ localPayloadcontentenableTracker = true;
+
+ this.localPayloadcontentenable = param;
+ }
+
+ public boolean isPayloademptyenableSpecified() {
+ return localPayloademptyenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloademptyenable() {
+ return localPayloademptyenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Payloademptyenable
+ */
+ public void setPayloademptyenable(java.lang.String param) {
+ localPayloademptyenableTracker = true;
+
+ this.localPayloademptyenable = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalUdpPayloadForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalUdpPayloadForService", xmlWriter);
+ }
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadOffsetMaxTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMax", xmlWriter);
+
+ if (localPayloadOffsetMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMax);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadOffsetMinTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMin", xmlWriter);
+
+ if (localPayloadOffsetMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMin);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadThreshold", xmlWriter);
+
+ if (localPayloadThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadcontentenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadcontentenable",
+ xmlWriter);
+
+ if (localPayloadcontentenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadcontentenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloademptyenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloademptyenable",
+ xmlWriter);
+
+ if (localPayloademptyenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloademptyenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalUdpPayloadForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalUdpPayloadForService object = new DdosGlobalUdpPayloadForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalUdpPayloadForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalUdpPayloadForService) 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadOffsetMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadOffsetMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadcontentenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadcontentenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloademptyenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloademptyenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalOtherFragForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalOtherFragForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalOtherFragForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalOtherFragForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalOtherFragForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalOtherFragForUMCResponse object = new SetDdosGlobalOtherFragForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalOtherFragForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalOtherFragForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsSipCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDnsSipCustomV4ForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsSipCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsSipCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsSipCustomV4ForUMCResponse object = new DelDnsSipCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsSipCustomV4ForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsSipCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ProtectionStrategyTemplateForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ProtectionStrategyTemplateForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Description
+ */
+ protected java.lang.String localDescription;
+
+ /* 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 localDescriptionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ public boolean isDescriptionSpecified() {
+ return localDescriptionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDescription() {
+ return localDescription;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Description
+ */
+ public void setDescription(java.lang.String param) {
+ localDescriptionTracker = true;
+
+ this.localDescription = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ProtectionStrategyTemplateForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ProtectionStrategyTemplateForService", xmlWriter);
+ }
+ }
+
+ if (localDescriptionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "description", xmlWriter);
+
+ if (localDescription == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDescription);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ProtectionStrategyTemplateForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ProtectionStrategyTemplateForService object = new ProtectionStrategyTemplateForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ProtectionStrategyTemplateForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ProtectionStrategyTemplateForService) 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://data.ntc.dp.com", "description").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDescription(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DnsDomainGlobalV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DnsDomainGlobalV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DnsDomainGlobalV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DnsDomainGlobalV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DnsDomainGlobalV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DnsDomainGlobalV4ForService object = new DnsDomainGlobalV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DnsDomainGlobalV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DnsDomainGlobalV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class FingerprintOtherForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = FingerprintOtherForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /* 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 localCustom1Tracker = false;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /* 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 localCustom2Tracker = false;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /* 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 localCustom3Tracker = false;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /* 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 localEnable1Tracker = false;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /* 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 localEnable2Tracker = false;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /* 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 localEnable3Tracker = false;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /* 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 localIp1Tracker = false;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /* 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 localIp2Tracker = false;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /* 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 localIp3Tracker = false;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /* 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 localKeylength1Tracker = false;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /* 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 localKeylength2Tracker = false;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /* 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 localKeylength3Tracker = false;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /* 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 localKeyoffset1Tracker = false;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /* 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 localKeyoffset2Tracker = false;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /* 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 localKeyoffset3Tracker = false;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /* 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 localKeytype1Tracker = false;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /* 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 localKeytype2Tracker = false;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /* 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 localKeytype3Tracker = false;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /* 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 localMask1Tracker = false;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /* 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 localMask2Tracker = false;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /* 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 localMask3Tracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /* 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 localThresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isCustom1Specified() {
+ return localCustom1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ localCustom1Tracker = true;
+
+ this.localCustom1 = param;
+ }
+
+ public boolean isCustom2Specified() {
+ return localCustom2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ localCustom2Tracker = true;
+
+ this.localCustom2 = param;
+ }
+
+ public boolean isCustom3Specified() {
+ return localCustom3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ localCustom3Tracker = true;
+
+ this.localCustom3 = param;
+ }
+
+ public boolean isEnable1Specified() {
+ return localEnable1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ localEnable1Tracker = true;
+
+ this.localEnable1 = param;
+ }
+
+ public boolean isEnable2Specified() {
+ return localEnable2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ localEnable2Tracker = true;
+
+ this.localEnable2 = param;
+ }
+
+ public boolean isEnable3Specified() {
+ return localEnable3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ localEnable3Tracker = true;
+
+ this.localEnable3 = param;
+ }
+
+ public boolean isIp1Specified() {
+ return localIp1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ localIp1Tracker = true;
+
+ this.localIp1 = param;
+ }
+
+ public boolean isIp2Specified() {
+ return localIp2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ localIp2Tracker = true;
+
+ this.localIp2 = param;
+ }
+
+ public boolean isIp3Specified() {
+ return localIp3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ localIp3Tracker = true;
+
+ this.localIp3 = param;
+ }
+
+ public boolean isKeylength1Specified() {
+ return localKeylength1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ localKeylength1Tracker = true;
+
+ this.localKeylength1 = param;
+ }
+
+ public boolean isKeylength2Specified() {
+ return localKeylength2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ localKeylength2Tracker = true;
+
+ this.localKeylength2 = param;
+ }
+
+ public boolean isKeylength3Specified() {
+ return localKeylength3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ localKeylength3Tracker = true;
+
+ this.localKeylength3 = param;
+ }
+
+ public boolean isKeyoffset1Specified() {
+ return localKeyoffset1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ localKeyoffset1Tracker = true;
+
+ this.localKeyoffset1 = param;
+ }
+
+ public boolean isKeyoffset2Specified() {
+ return localKeyoffset2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ localKeyoffset2Tracker = true;
+
+ this.localKeyoffset2 = param;
+ }
+
+ public boolean isKeyoffset3Specified() {
+ return localKeyoffset3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ localKeyoffset3Tracker = true;
+
+ this.localKeyoffset3 = param;
+ }
+
+ public boolean isKeytype1Specified() {
+ return localKeytype1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ localKeytype1Tracker = true;
+
+ this.localKeytype1 = param;
+ }
+
+ public boolean isKeytype2Specified() {
+ return localKeytype2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ localKeytype2Tracker = true;
+
+ this.localKeytype2 = param;
+ }
+
+ public boolean isKeytype3Specified() {
+ return localKeytype3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ localKeytype3Tracker = true;
+
+ this.localKeytype3 = param;
+ }
+
+ public boolean isMask1Specified() {
+ return localMask1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ localMask1Tracker = true;
+
+ this.localMask1 = param;
+ }
+
+ public boolean isMask2Specified() {
+ return localMask2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ localMask2Tracker = true;
+
+ this.localMask2 = param;
+ }
+
+ public boolean isMask3Specified() {
+ return localMask3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ localMask3Tracker = true;
+
+ this.localMask3 = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isThresholdSpecified() {
+ return localThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ localThresholdTracker = true;
+
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":FingerprintOtherForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "FingerprintOtherForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 FingerprintOtherForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ FingerprintOtherForService object = new FingerprintOtherForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"FingerprintOtherForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (FingerprintOtherForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosHttpGetSipCusProV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipCusProV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosHttpGetSipCusProV4FromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosHttpGetSipCusProV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosHttpGetSipCusProV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosHttpGetSipCusProV4FromUMC object = new GetDdosHttpGetSipCusProV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosHttpGetSipCusProV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosHttpGetSipCusProV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBlackHoleManualStrategyFromUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleManualStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfBlackHoleManualStrategyForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfBlackHoleManualStrategyForService
+ */
+ public ArrayOfBlackHoleManualStrategyForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfBlackHoleManualStrategyForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBlackHoleManualStrategyFromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBlackHoleManualStrategyFromUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBlackHoleManualStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBlackHoleManualStrategyFromUMCResponse object = new GetAllBlackHoleManualStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBlackHoleManualStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBlackHoleManualStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfBlackHoleManualStrategyForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteDetectionObjectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteDetectionObjectForUMC", "ns1");
+
+ /**
+ * field for DetectionName
+ */
+ protected java.lang.String localDetectionName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionName() {
+ return localDetectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionName
+ */
+ public void setDetectionName(java.lang.String param) {
+ this.localDetectionName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":deleteDetectionObjectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteDetectionObjectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionName", xmlWriter);
+
+ if (localDetectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteDetectionObjectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteDetectionObjectForUMC object = new DeleteDetectionObjectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteDetectionObjectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteDetectionObjectForUMC) 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://service.ntc.dp.com", "detectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfFingerprintOtherForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfFingerprintOtherForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for FingerprintOtherForService
+ * This was an Array!
+ */
+ protected FingerprintOtherForService[] localFingerprintOtherForService;
+
+ /* 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 localFingerprintOtherForServiceTracker = false;
+
+ public boolean isFingerprintOtherForServiceSpecified() {
+ return localFingerprintOtherForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return FingerprintOtherForService[]
+ */
+ public FingerprintOtherForService[] getFingerprintOtherForService() {
+ return localFingerprintOtherForService;
+ }
+
+ /**
+ * validate the array for FingerprintOtherForService
+ */
+ protected void validateFingerprintOtherForService(
+ FingerprintOtherForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FingerprintOtherForService
+ */
+ public void setFingerprintOtherForService(
+ FingerprintOtherForService[] param) {
+ validateFingerprintOtherForService(param);
+
+ localFingerprintOtherForServiceTracker = true;
+
+ this.localFingerprintOtherForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param FingerprintOtherForService
+ */
+ public void addFingerprintOtherForService(
+ FingerprintOtherForService param) {
+ if (localFingerprintOtherForService == null) {
+ localFingerprintOtherForService = new FingerprintOtherForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localFingerprintOtherForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFingerprintOtherForService);
+ list.add(param);
+ this.localFingerprintOtherForService = (FingerprintOtherForService[]) list.toArray(new FingerprintOtherForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfFingerprintOtherForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfFingerprintOtherForService", xmlWriter);
+ }
+ }
+
+ if (localFingerprintOtherForServiceTracker) {
+ if (localFingerprintOtherForService != null) {
+ for (int i = 0; i < localFingerprintOtherForService.length;
+ i++) {
+ if (localFingerprintOtherForService[i] != null) {
+ localFingerprintOtherForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "FingerprintOtherForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintOtherForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "FingerprintOtherForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfFingerprintOtherForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfFingerprintOtherForService object = new ArrayOfFingerprintOtherForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfFingerprintOtherForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfFingerprintOtherForService) 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://data.ntc.dp.com",
+ "FingerprintOtherForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintOtherForService.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://data.ntc.dp.com",
+ "FingerprintOtherForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(FingerprintOtherForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setFingerprintOtherForService((FingerprintOtherForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ FingerprintOtherForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosHttpGetUriGloProV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriGloProV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosHttpGetUriGloProV4FromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosHttpGetUriGloProV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosHttpGetUriGloProV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosHttpGetUriGloProV4FromUMC object = new GetDdosHttpGetUriGloProV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosHttpGetUriGloProV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosHttpGetUriGloProV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalUdpPayloadFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpPayloadFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalUdpPayloadForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalUdpPayloadForService
+ */
+ public DdosGlobalUdpPayloadForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalUdpPayloadForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalUdpPayloadFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalUdpPayloadFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalUdpPayloadFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalUdpPayloadFromUMCResponse object = new GetDdosGlobalUdpPayloadFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalUdpPayloadFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalUdpPayloadFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalUdpPayloadForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalSynFloodForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalSynFloodForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Enable
+ */
+ protected java.lang.String localEnable;
+
+ /* 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 localEnableTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /* 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 localThresholdTracker = false;
+
+ /**
+ * field for Type
+ */
+ protected java.lang.String localType;
+
+ /* 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 localTypeTracker = false;
+
+ public boolean isEnableSpecified() {
+ return localEnableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable() {
+ return localEnable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable
+ */
+ public void setEnable(java.lang.String param) {
+ localEnableTracker = true;
+
+ this.localEnable = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isThresholdSpecified() {
+ return localThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ localThresholdTracker = true;
+
+ this.localThreshold = param;
+ }
+
+ public boolean isTypeSpecified() {
+ return localTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getType() {
+ return localType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Type
+ */
+ public void setType(java.lang.String param) {
+ localTypeTracker = true;
+
+ this.localType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalSynFloodForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalSynFloodForService", xmlWriter);
+ }
+ }
+
+ if (localEnableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable", xmlWriter);
+
+ if (localEnable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "type", xmlWriter);
+
+ if (localType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localType);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalSynFloodForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalSynFloodForService object = new DdosGlobalSynFloodForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalSynFloodForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalSynFloodForService) 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://data.ntc.dp.com", "enable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "type").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetUriGloProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetUriGloProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addDdosHttpGetUriGloProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetUriGloProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetUriGloProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetUriGloProV4ForUMCResponse object = new AddDdosHttpGetUriGloProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetUriGloProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetUriGloProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteCompleteAnomalyDetectionStrategyForUMC
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteCompleteAnomalyDetectionStrategyForUMC", "ns1");
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ this.localStrategyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ this.localDirection = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":deleteCompleteAnomalyDetectionStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteCompleteAnomalyDetectionStrategyForUMC",
+ xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteCompleteAnomalyDetectionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteCompleteAnomalyDetectionStrategyForUMC object = new DeleteCompleteAnomalyDetectionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteCompleteAnomalyDetectionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteCompleteAnomalyDetectionStrategyForUMC) 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://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class BlackAndWhiteListDataForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = BlackAndWhiteListDataForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DipEndIp
+ */
+ protected java.lang.String localDipEndIp;
+
+ /* 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 localDipEndIpTracker = false;
+
+ /**
+ * field for DipStartIp
+ */
+ protected java.lang.String localDipStartIp;
+
+ /* 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 localDipStartIpTracker = false;
+
+ /**
+ * field for DipType
+ */
+ protected java.lang.String localDipType;
+
+ /* 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 localDipTypeTracker = false;
+
+ /**
+ * field for Hour
+ */
+ protected java.lang.String localHour;
+
+ /* 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 localHourTracker = false;
+
+ /**
+ * field for Minute
+ */
+ protected java.lang.String localMinute;
+
+ /* 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 localMinuteTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ProtectionType
+ */
+ protected java.lang.String localProtectionType;
+
+ /* 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 localProtectionTypeTracker = false;
+
+ /**
+ * field for Second
+ */
+ protected java.lang.String localSecond;
+
+ /* 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 localSecondTracker = false;
+
+ /**
+ * field for SipEndIp
+ */
+ protected java.lang.String localSipEndIp;
+
+ /* 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 localSipEndIpTracker = false;
+
+ /**
+ * field for SipStartIp
+ */
+ protected java.lang.String localSipStartIp;
+
+ /* 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 localSipStartIpTracker = false;
+
+ /**
+ * field for SipType
+ */
+ protected java.lang.String localSipType;
+
+ /* 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 localSipTypeTracker = false;
+
+ /**
+ * field for TimeType
+ */
+ protected java.lang.String localTimeType;
+
+ /* 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 localTimeTypeTracker = false;
+
+ public boolean isDipEndIpSpecified() {
+ return localDipEndIpTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDipEndIp() {
+ return localDipEndIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DipEndIp
+ */
+ public void setDipEndIp(java.lang.String param) {
+ localDipEndIpTracker = true;
+
+ this.localDipEndIp = param;
+ }
+
+ public boolean isDipStartIpSpecified() {
+ return localDipStartIpTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDipStartIp() {
+ return localDipStartIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DipStartIp
+ */
+ public void setDipStartIp(java.lang.String param) {
+ localDipStartIpTracker = true;
+
+ this.localDipStartIp = param;
+ }
+
+ public boolean isDipTypeSpecified() {
+ return localDipTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDipType() {
+ return localDipType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DipType
+ */
+ public void setDipType(java.lang.String param) {
+ localDipTypeTracker = true;
+
+ this.localDipType = param;
+ }
+
+ public boolean isHourSpecified() {
+ return localHourTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getHour() {
+ return localHour;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Hour
+ */
+ public void setHour(java.lang.String param) {
+ localHourTracker = true;
+
+ this.localHour = param;
+ }
+
+ public boolean isMinuteSpecified() {
+ return localMinuteTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMinute() {
+ return localMinute;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Minute
+ */
+ public void setMinute(java.lang.String param) {
+ localMinuteTracker = true;
+
+ this.localMinute = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isProtectionTypeSpecified() {
+ return localProtectionTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionType() {
+ return localProtectionType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionType
+ */
+ public void setProtectionType(java.lang.String param) {
+ localProtectionTypeTracker = true;
+
+ this.localProtectionType = param;
+ }
+
+ public boolean isSecondSpecified() {
+ return localSecondTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSecond() {
+ return localSecond;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Second
+ */
+ public void setSecond(java.lang.String param) {
+ localSecondTracker = true;
+
+ this.localSecond = param;
+ }
+
+ public boolean isSipEndIpSpecified() {
+ return localSipEndIpTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipEndIp() {
+ return localSipEndIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SipEndIp
+ */
+ public void setSipEndIp(java.lang.String param) {
+ localSipEndIpTracker = true;
+
+ this.localSipEndIp = param;
+ }
+
+ public boolean isSipStartIpSpecified() {
+ return localSipStartIpTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipStartIp() {
+ return localSipStartIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SipStartIp
+ */
+ public void setSipStartIp(java.lang.String param) {
+ localSipStartIpTracker = true;
+
+ this.localSipStartIp = param;
+ }
+
+ public boolean isSipTypeSpecified() {
+ return localSipTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipType() {
+ return localSipType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SipType
+ */
+ public void setSipType(java.lang.String param) {
+ localSipTypeTracker = true;
+
+ this.localSipType = param;
+ }
+
+ public boolean isTimeTypeSpecified() {
+ return localTimeTypeTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getTimeType() {
+ return localTimeType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param TimeType
+ */
+ public void setTimeType(java.lang.String param) {
+ localTimeTypeTracker = true;
+
+ this.localTimeType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":BlackAndWhiteListDataForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "BlackAndWhiteListDataForService", xmlWriter);
+ }
+ }
+
+ if (localDipEndIpTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "dipEndIp", xmlWriter);
+
+ if (localDipEndIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDipEndIp);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDipStartIpTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "dipStartIp", xmlWriter);
+
+ if (localDipStartIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDipStartIp);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDipTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "dipType", xmlWriter);
+
+ if (localDipType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDipType);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localHourTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "hour", xmlWriter);
+
+ if (localHour == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localHour);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMinuteTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "minute", xmlWriter);
+
+ if (localMinute == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMinute);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectionTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionType", xmlWriter);
+
+ if (localProtectionType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionType);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSecondTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "second", xmlWriter);
+
+ if (localSecond == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSecond);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSipEndIpTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "sipEndIp", xmlWriter);
+
+ if (localSipEndIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipEndIp);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSipStartIpTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "sipStartIp", xmlWriter);
+
+ if (localSipStartIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipStartIp);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localSipTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "sipType", xmlWriter);
+
+ if (localSipType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipType);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localTimeTypeTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "timeType", xmlWriter);
+
+ if (localTimeType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localTimeType);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 BlackAndWhiteListDataForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ BlackAndWhiteListDataForService object = new BlackAndWhiteListDataForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"BlackAndWhiteListDataForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (BlackAndWhiteListDataForService) 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://data.ntc.dp.com", "dipEndIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDipEndIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "dipStartIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDipStartIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "dipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDipType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "hour").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setHour(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "minute").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMinute(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectionType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "second").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSecond(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "sipEndIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipEndIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "sipStartIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipStartIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "sipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "timeType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setTimeType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsDomainGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDnsDomainGlobalV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsDomainGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsDomainGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsDomainGlobalV4ForUMC object = new ModDnsDomainGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsDomainGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsDomainGlobalV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllAnomalyDetectionStrategyFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllAnomalyDetectionStrategyFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllAnomalyDetectionStrategyFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllAnomalyDetectionStrategyFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllAnomalyDetectionStrategyFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllAnomalyDetectionStrategyFromUMC object = new GetAllAnomalyDetectionStrategyFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllAnomalyDetectionStrategyFromUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllAnomalyDetectionStrategyFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosDnsRetryProtectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosDnsRetryProtectForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDdosDnsRetryProtectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosDnsRetryProtectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosDnsRetryProtectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosDnsRetryProtectForUMC object = new DelDdosDnsRetryProtectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosDnsRetryProtectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosDnsRetryProtectForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalIcmpFragForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpFragForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Icmpenable
+ */
+ protected java.lang.String localIcmpenable;
+
+ /**
+ * field for Icmpthreshold
+ */
+ protected java.lang.String localIcmpthreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIcmpenable() {
+ return localIcmpenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Icmpenable
+ */
+ public void setIcmpenable(java.lang.String param) {
+ this.localIcmpenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIcmpthreshold() {
+ return localIcmpthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Icmpthreshold
+ */
+ public void setIcmpthreshold(java.lang.String param) {
+ this.localIcmpthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalIcmpFragForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalIcmpFragForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpenable", xmlWriter);
+
+ if (localIcmpenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIcmpenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpthreshold", xmlWriter);
+
+ if (localIcmpthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIcmpthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalIcmpFragForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalIcmpFragForUMC object = new SetDdosGlobalIcmpFragForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalIcmpFragForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalIcmpFragForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "icmpenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "icmpthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBlackHoleManualStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleManualStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addBlackHoleManualStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBlackHoleManualStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBlackHoleManualStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBlackHoleManualStrategyForUMCResponse object = new AddBlackHoleManualStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBlackHoleManualStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBlackHoleManualStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSipGlobalV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipGlobalV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDnsSipGlobalV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDnsSipGlobalV4ForService
+ */
+ public ArrayOfDnsSipGlobalV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDnsSipGlobalV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsSipGlobalV4FromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSipGlobalV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSipGlobalV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSipGlobalV4FromUMCResponse object = new GetDnsSipGlobalV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSipGlobalV4FromUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSipGlobalV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDnsSipGlobalV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ExtensionMapper {
+ public static java.lang.Object getTypeObject(
+ java.lang.String namespaceURI, java.lang.String typeName,
+ javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {
+ if ("http://service.ntc.dp.com".equals(namespaceURI) &&
+ "NtcRequestResultInfo".equals(typeName)) {
+ return NtcRequestResultInfo.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalSynFloodForService".equals(typeName)) {
+ return DdosGlobalSynFloodForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfProtectionStrategyTemplateForService".equals(
+ typeName)) {
+ return ArrayOfProtectionStrategyTemplateForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalTcpStateForService".equals(typeName)) {
+ return DdosGlobalTcpStateForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDnsDomainCustomV4ForService".equals(typeName)) {
+ return ArrayOfDnsDomainCustomV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfProtectionObjectDataForService".equals(typeName)) {
+ return ArrayOfProtectionObjectDataForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "BypassManualTractionStrategyForService".equals(typeName)) {
+ return BypassManualTractionStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "BlackHoleManualStrategyForService".equals(typeName)) {
+ return BlackHoleManualStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DetectionObjectDataForService".equals(typeName)) {
+ return DetectionObjectDataForService.Factory.parse(reader);
+ }
+
+ if ("http://service.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfAnomalyDetectionStrategy".equals(typeName)) {
+ return ArrayOfAnomalyDetectionStrategy.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "BlackAndWhiteListDataForService".equals(typeName)) {
+ return BlackAndWhiteListDataForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosHttpGetUriCusProV4ForService".equals(typeName)) {
+ return DdosHttpGetUriCusProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosHttpGetUriCusProV4ForService".equals(typeName)) {
+ return ArrayOfDdosHttpGetUriCusProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDnsSipCustomV4ForService".equals(typeName)) {
+ return ArrayOfDnsSipCustomV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDnsSecDomainCustomV4ForService".equals(typeName)) {
+ return ArrayOfDnsSecDomainCustomV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfFingerprintUdpForService".equals(typeName)) {
+ return ArrayOfFingerprintUdpForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfBypassManualTractionStrategyForService".equals(
+ typeName)) {
+ return ArrayOfBypassManualTractionStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ProtectionObjectDataForService".equals(typeName)) {
+ return ProtectionObjectDataForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosHttpGetUriGloProV4ForService".equals(typeName)) {
+ return ArrayOfDdosHttpGetUriGloProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://service.ntc.dp.com".equals(namespaceURI) &&
+ "AnomalyDetectionStrategy".equals(typeName)) {
+ return AnomalyDetectionStrategy.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalUdpLengthForService".equals(typeName)) {
+ return DdosGlobalUdpLengthForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDnsDomainGlobalV4ForService".equals(typeName)) {
+ return ArrayOfDnsDomainGlobalV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DnsSecDomainGlobalV4ForService".equals(typeName)) {
+ return DnsSecDomainGlobalV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalIcmpLengthForService".equals(typeName)) {
+ return DdosGlobalIcmpLengthForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfBlackHoleAutoStrategyForService".equals(typeName)) {
+ return ArrayOfBlackHoleAutoStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosCCuserGroupV4ForService".equals(typeName)) {
+ return DdosCCuserGroupV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfBlackHoleManualStrategyForService".equals(typeName)) {
+ return ArrayOfBlackHoleManualStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosDnsRetryProtectForService".equals(typeName)) {
+ return DdosDnsRetryProtectForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosACProtectionForService".equals(typeName)) {
+ return DdosACProtectionForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosHttpGetUriGloProV4ForService".equals(typeName)) {
+ return DdosHttpGetUriGloProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDetectionObjectDataForService".equals(typeName)) {
+ return ArrayOfDetectionObjectDataForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosACProtectionForService".equals(typeName)) {
+ return ArrayOfDdosACProtectionForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DnsDomainCustomV4ForService".equals(typeName)) {
+ return DnsDomainCustomV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalAckPayloadForService".equals(typeName)) {
+ return DdosGlobalAckPayloadForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalUdpFragForService".equals(typeName)) {
+ return DdosGlobalUdpFragForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "BlackHoleAutoStrategyForService".equals(typeName)) {
+ return BlackHoleAutoStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DnsSecDomainCustomV4ForService".equals(typeName)) {
+ return DnsSecDomainCustomV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalTcpFlagForService".equals(typeName)) {
+ return DdosGlobalTcpFlagForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalIcmpFragForService".equals(typeName)) {
+ return DdosGlobalIcmpFragForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDnsSecDomainGlobalV4ForService".equals(typeName)) {
+ return ArrayOfDnsSecDomainGlobalV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfFingerprintIcmpForService".equals(typeName)) {
+ return ArrayOfFingerprintIcmpForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalTcpLengthForService".equals(typeName)) {
+ return DdosGlobalTcpLengthForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalIcmpPayloadForService".equals(typeName)) {
+ return DdosGlobalIcmpPayloadForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosHttpGetSipCusProV4ForService".equals(typeName)) {
+ return DdosHttpGetSipCusProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosHttpGetSipGloProV4ForService".equals(typeName)) {
+ return DdosHttpGetSipGloProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfBlackAndWhiteListDataForService".equals(typeName)) {
+ return ArrayOfBlackAndWhiteListDataForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDnsSipGlobalV4ForService".equals(typeName)) {
+ return ArrayOfDnsSipGlobalV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "FingerprintUdpForService".equals(typeName)) {
+ return FingerprintUdpForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DnsSipCustomV4ForService".equals(typeName)) {
+ return DnsSipCustomV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalTcpFragForService".equals(typeName)) {
+ return DdosGlobalTcpFragForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosDnsRetryProtectForService".equals(typeName)) {
+ return ArrayOfDdosDnsRetryProtectForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "FingerprintIcmpForService".equals(typeName)) {
+ return FingerprintIcmpForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DnsSipGlobalV4ForService".equals(typeName)) {
+ return DnsSipGlobalV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "FingerprintTcpForService".equals(typeName)) {
+ return FingerprintTcpForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosHttpGetSipGloProV4ForService".equals(typeName)) {
+ return ArrayOfDdosHttpGetSipGloProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalUdpPayloadForService".equals(typeName)) {
+ return DdosGlobalUdpPayloadForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosHttpGetSipCusProV4ForService".equals(typeName)) {
+ return ArrayOfDdosHttpGetSipCusProV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ProtectionStrategyTemplateForService".equals(typeName)) {
+ return ProtectionStrategyTemplateForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfFingerprintTcpForService".equals(typeName)) {
+ return ArrayOfFingerprintTcpForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DnsDomainGlobalV4ForService".equals(typeName)) {
+ return DnsDomainGlobalV4ForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "DdosGlobalOtherFragForService".equals(typeName)) {
+ return DdosGlobalOtherFragForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "FingerprintOtherForService".equals(typeName)) {
+ return FingerprintOtherForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfProtectionTargetWithStrategyForService".equals(
+ typeName)) {
+ return ArrayOfProtectionTargetWithStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ProtectionTargetWithStrategyForService".equals(typeName)) {
+ return ProtectionTargetWithStrategyForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfFingerprintOtherForService".equals(typeName)) {
+ return ArrayOfFingerprintOtherForService.Factory.parse(reader);
+ }
+
+ if ("http://data.ntc.dp.com".equals(namespaceURI) &&
+ "ArrayOfDdosCCuserGroupV4ForService".equals(typeName)) {
+ return ArrayOfDdosCCuserGroupV4ForService.Factory.parse(reader);
+ }
+
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unsupported type " + namespaceURI + " " + typeName);
+ }
+ }
+
+ public static class ArrayOfDdosHttpGetUriGloProV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDdosHttpGetUriGloProV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DdosHttpGetUriGloProV4ForService
+ * This was an Array!
+ */
+ protected DdosHttpGetUriGloProV4ForService[] localDdosHttpGetUriGloProV4ForService;
+
+ /* 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 localDdosHttpGetUriGloProV4ForServiceTracker = false;
+
+ public boolean isDdosHttpGetUriGloProV4ForServiceSpecified() {
+ return localDdosHttpGetUriGloProV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DdosHttpGetUriGloProV4ForService[]
+ */
+ public DdosHttpGetUriGloProV4ForService[] getDdosHttpGetUriGloProV4ForService() {
+ return localDdosHttpGetUriGloProV4ForService;
+ }
+
+ /**
+ * validate the array for DdosHttpGetUriGloProV4ForService
+ */
+ protected void validateDdosHttpGetUriGloProV4ForService(
+ DdosHttpGetUriGloProV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DdosHttpGetUriGloProV4ForService
+ */
+ public void setDdosHttpGetUriGloProV4ForService(
+ DdosHttpGetUriGloProV4ForService[] param) {
+ validateDdosHttpGetUriGloProV4ForService(param);
+
+ localDdosHttpGetUriGloProV4ForServiceTracker = true;
+
+ this.localDdosHttpGetUriGloProV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DdosHttpGetUriGloProV4ForService
+ */
+ public void addDdosHttpGetUriGloProV4ForService(
+ DdosHttpGetUriGloProV4ForService param) {
+ if (localDdosHttpGetUriGloProV4ForService == null) {
+ localDdosHttpGetUriGloProV4ForService = new DdosHttpGetUriGloProV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDdosHttpGetUriGloProV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDdosHttpGetUriGloProV4ForService);
+ list.add(param);
+ this.localDdosHttpGetUriGloProV4ForService = (DdosHttpGetUriGloProV4ForService[]) list.toArray(new DdosHttpGetUriGloProV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDdosHttpGetUriGloProV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDdosHttpGetUriGloProV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDdosHttpGetUriGloProV4ForServiceTracker) {
+ if (localDdosHttpGetUriGloProV4ForService != null) {
+ for (int i = 0;
+ i < localDdosHttpGetUriGloProV4ForService.length;
+ i++) {
+ if (localDdosHttpGetUriGloProV4ForService[i] != null) {
+ localDdosHttpGetUriGloProV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DdosHttpGetUriGloProV4ForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosHttpGetUriGloProV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DdosHttpGetUriGloProV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDdosHttpGetUriGloProV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDdosHttpGetUriGloProV4ForService object = new ArrayOfDdosHttpGetUriGloProV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDdosHttpGetUriGloProV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDdosHttpGetUriGloProV4ForService) 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://data.ntc.dp.com",
+ "DdosHttpGetUriGloProV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosHttpGetUriGloProV4ForService.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://data.ntc.dp.com",
+ "DdosHttpGetUriGloProV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DdosHttpGetUriGloProV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDdosHttpGetUriGloProV4ForService((DdosHttpGetUriGloProV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DdosHttpGetUriGloProV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModifyDetectionObjectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyDetectionObjectForUMC", "ns1");
+
+ /**
+ * field for DetectionName
+ */
+ protected java.lang.String localDetectionName;
+
+ /**
+ * field for IpSegment
+ */
+ protected java.lang.String localIpSegment;
+
+ /**
+ * field for IpType
+ */
+ protected int localIpType;
+
+ /**
+ * field for CleaningType
+ */
+ protected int localCleaningType;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionName() {
+ return localDetectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionName
+ */
+ public void setDetectionName(java.lang.String param) {
+ this.localDetectionName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpSegment() {
+ return localIpSegment;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpSegment
+ */
+ public void setIpSegment(java.lang.String param) {
+ this.localIpSegment = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpType() {
+ return localIpType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpType
+ */
+ public void setIpType(int param) {
+ this.localIpType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCleaningType() {
+ return localCleaningType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningType
+ */
+ public void setCleaningType(int param) {
+ this.localCleaningType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modifyDetectionObjectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modifyDetectionObjectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionName", xmlWriter);
+
+ if (localDetectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipSegment", xmlWriter);
+
+ if (localIpSegment == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpSegment);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipType", xmlWriter);
+
+ if (localIpType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningType", xmlWriter);
+
+ if (localCleaningType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "cleaningType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCleaningType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModifyDetectionObjectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModifyDetectionObjectForUMC object = new ModifyDetectionObjectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modifyDetectionObjectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModifyDetectionObjectForUMC) 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://service.ntc.dp.com", "detectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipSegment").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpSegment(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "cleaningType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDnsDomainGlobalV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDnsDomainGlobalV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DnsDomainGlobalV4ForService
+ * This was an Array!
+ */
+ protected DnsDomainGlobalV4ForService[] localDnsDomainGlobalV4ForService;
+
+ /* 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 localDnsDomainGlobalV4ForServiceTracker = false;
+
+ public boolean isDnsDomainGlobalV4ForServiceSpecified() {
+ return localDnsDomainGlobalV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DnsDomainGlobalV4ForService[]
+ */
+ public DnsDomainGlobalV4ForService[] getDnsDomainGlobalV4ForService() {
+ return localDnsDomainGlobalV4ForService;
+ }
+
+ /**
+ * validate the array for DnsDomainGlobalV4ForService
+ */
+ protected void validateDnsDomainGlobalV4ForService(
+ DnsDomainGlobalV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsDomainGlobalV4ForService
+ */
+ public void setDnsDomainGlobalV4ForService(
+ DnsDomainGlobalV4ForService[] param) {
+ validateDnsDomainGlobalV4ForService(param);
+
+ localDnsDomainGlobalV4ForServiceTracker = true;
+
+ this.localDnsDomainGlobalV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DnsDomainGlobalV4ForService
+ */
+ public void addDnsDomainGlobalV4ForService(
+ DnsDomainGlobalV4ForService param) {
+ if (localDnsDomainGlobalV4ForService == null) {
+ localDnsDomainGlobalV4ForService = new DnsDomainGlobalV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDnsDomainGlobalV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDnsDomainGlobalV4ForService);
+ list.add(param);
+ this.localDnsDomainGlobalV4ForService = (DnsDomainGlobalV4ForService[]) list.toArray(new DnsDomainGlobalV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDnsDomainGlobalV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDnsDomainGlobalV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDnsDomainGlobalV4ForServiceTracker) {
+ if (localDnsDomainGlobalV4ForService != null) {
+ for (int i = 0;
+ i < localDnsDomainGlobalV4ForService.length; i++) {
+ if (localDnsDomainGlobalV4ForService[i] != null) {
+ localDnsDomainGlobalV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DnsDomainGlobalV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsDomainGlobalV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsDomainGlobalV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDnsDomainGlobalV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDnsDomainGlobalV4ForService object = new ArrayOfDnsDomainGlobalV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDnsDomainGlobalV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDnsDomainGlobalV4ForService) 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://data.ntc.dp.com",
+ "DnsDomainGlobalV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsDomainGlobalV4ForService.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://data.ntc.dp.com",
+ "DnsDomainGlobalV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsDomainGlobalV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDnsDomainGlobalV4ForService((DnsDomainGlobalV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DnsDomainGlobalV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosHttpGetSipGloProV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetSipGloProV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDdosHttpGetSipGloProV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDdosHttpGetSipGloProV4ForService
+ */
+ public ArrayOfDdosHttpGetSipGloProV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDdosHttpGetSipGloProV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosHttpGetSipGloProV4FromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosHttpGetSipGloProV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosHttpGetSipGloProV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosHttpGetSipGloProV4FromUMCResponse object = new GetDdosHttpGetSipGloProV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosHttpGetSipGloProV4FromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosHttpGetSipGloProV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDdosHttpGetSipGloProV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsDomainGlobalV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsDomainGlobalV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDnsDomainGlobalV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDnsDomainGlobalV4ForService
+ */
+ public ArrayOfDnsDomainGlobalV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDnsDomainGlobalV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDnsDomainGlobalV4FromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsDomainGlobalV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsDomainGlobalV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsDomainGlobalV4FromUMCResponse object = new GetDnsDomainGlobalV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsDomainGlobalV4FromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsDomainGlobalV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDnsDomainGlobalV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBlackAndWhiteListProtection implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackAndWhiteListProtection", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for SipType
+ */
+ protected java.lang.String localSipType;
+
+ /**
+ * field for SipStartIp
+ */
+ protected java.lang.String localSipStartIp;
+
+ /**
+ * field for SipEndIp
+ */
+ protected java.lang.String localSipEndIp;
+
+ /**
+ * field for DipType
+ */
+ protected java.lang.String localDipType;
+
+ /**
+ * field for DipStartIp
+ */
+ protected java.lang.String localDipStartIp;
+
+ /**
+ * field for DipEndIp
+ */
+ protected java.lang.String localDipEndIp;
+
+ /**
+ * field for TimeType
+ */
+ protected java.lang.String localTimeType;
+
+ /**
+ * field for Hour
+ */
+ protected java.lang.String localHour;
+
+ /**
+ * field for Minute
+ */
+ protected java.lang.String localMinute;
+
+ /**
+ * field for Second
+ */
+ protected java.lang.String localSecond;
+
+ /**
+ * field for ProtectionType
+ */
+ protected java.lang.String localProtectionType;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipType() {
+ return localSipType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SipType
+ */
+ public void setSipType(java.lang.String param) {
+ this.localSipType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipStartIp() {
+ return localSipStartIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SipStartIp
+ */
+ public void setSipStartIp(java.lang.String param) {
+ this.localSipStartIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipEndIp() {
+ return localSipEndIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SipEndIp
+ */
+ public void setSipEndIp(java.lang.String param) {
+ this.localSipEndIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDipType() {
+ return localDipType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DipType
+ */
+ public void setDipType(java.lang.String param) {
+ this.localDipType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDipStartIp() {
+ return localDipStartIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DipStartIp
+ */
+ public void setDipStartIp(java.lang.String param) {
+ this.localDipStartIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDipEndIp() {
+ return localDipEndIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DipEndIp
+ */
+ public void setDipEndIp(java.lang.String param) {
+ this.localDipEndIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getTimeType() {
+ return localTimeType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param TimeType
+ */
+ public void setTimeType(java.lang.String param) {
+ this.localTimeType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getHour() {
+ return localHour;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Hour
+ */
+ public void setHour(java.lang.String param) {
+ this.localHour = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMinute() {
+ return localMinute;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Minute
+ */
+ public void setMinute(java.lang.String param) {
+ this.localMinute = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSecond() {
+ return localSecond;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Second
+ */
+ public void setSecond(java.lang.String param) {
+ this.localSecond = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionType() {
+ return localProtectionType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionType
+ */
+ public void setProtectionType(java.lang.String param) {
+ this.localProtectionType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addBlackAndWhiteListProtection",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBlackAndWhiteListProtection", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sipType", xmlWriter);
+
+ if (localSipType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipType);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sipStartIp", xmlWriter);
+
+ if (localSipStartIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipStartIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sipEndIp", xmlWriter);
+
+ if (localSipEndIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipEndIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dipType", xmlWriter);
+
+ if (localDipType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDipType);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dipStartIp", xmlWriter);
+
+ if (localDipStartIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDipStartIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dipEndIp", xmlWriter);
+
+ if (localDipEndIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDipEndIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "timeType", xmlWriter);
+
+ if (localTimeType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localTimeType);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "hour", xmlWriter);
+
+ if (localHour == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localHour);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "minute", xmlWriter);
+
+ if (localMinute == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMinute);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "second", xmlWriter);
+
+ if (localSecond == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSecond);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionType", xmlWriter);
+
+ if (localProtectionType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionType);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBlackAndWhiteListProtection parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBlackAndWhiteListProtection object = new AddBlackAndWhiteListProtection();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBlackAndWhiteListProtection".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBlackAndWhiteListProtection) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sipStartIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipStartIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sipEndIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipEndIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDipType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dipStartIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDipStartIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dipEndIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDipEndIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "timeType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setTimeType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "hour").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setHour(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "minute").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMinute(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "second").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSecond(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectionType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalUdpLengthFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpLengthFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalUdpLengthForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalUdpLengthForService
+ */
+ public DdosGlobalUdpLengthForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalUdpLengthForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalUdpLengthFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalUdpLengthFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalUdpLengthFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalUdpLengthFromUMCResponse object = new GetDdosGlobalUdpLengthFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalUdpLengthFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalUdpLengthFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalUdpLengthForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModACProtectionForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modACProtectionForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for FixString
+ */
+ protected java.lang.String localFixString;
+
+ /**
+ * field for StartLocation
+ */
+ protected java.lang.String localStartLocation;
+
+ /**
+ * field for EndLocation
+ */
+ protected java.lang.String localEndLocation;
+
+ /**
+ * field for RegularExpression
+ */
+ protected java.lang.String localRegularExpression;
+
+ /**
+ * field for AcSip
+ */
+ protected java.lang.String localAcSip;
+
+ /**
+ * field for AcSmask
+ */
+ protected java.lang.String localAcSmask;
+
+ /**
+ * field for AcDip
+ */
+ protected java.lang.String localAcDip;
+
+ /**
+ * field for AcDmask
+ */
+ protected java.lang.String localAcDmask;
+
+ /**
+ * field for Protocol
+ */
+ protected java.lang.String localProtocol;
+
+ /**
+ * field for SrcPortMin
+ */
+ protected java.lang.String localSrcPortMin;
+
+ /**
+ * field for SrcPortMax
+ */
+ protected java.lang.String localSrcPortMax;
+
+ /**
+ * field for DstPortMin
+ */
+ protected java.lang.String localDstPortMin;
+
+ /**
+ * field for DstPortMax
+ */
+ protected java.lang.String localDstPortMax;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFixString() {
+ return localFixString;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FixString
+ */
+ public void setFixString(java.lang.String param) {
+ this.localFixString = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStartLocation() {
+ return localStartLocation;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StartLocation
+ */
+ public void setStartLocation(java.lang.String param) {
+ this.localStartLocation = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEndLocation() {
+ return localEndLocation;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param EndLocation
+ */
+ public void setEndLocation(java.lang.String param) {
+ this.localEndLocation = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getRegularExpression() {
+ return localRegularExpression;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param RegularExpression
+ */
+ public void setRegularExpression(java.lang.String param) {
+ this.localRegularExpression = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcSip() {
+ return localAcSip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcSip
+ */
+ public void setAcSip(java.lang.String param) {
+ this.localAcSip = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcSmask() {
+ return localAcSmask;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcSmask
+ */
+ public void setAcSmask(java.lang.String param) {
+ this.localAcSmask = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcDip() {
+ return localAcDip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcDip
+ */
+ public void setAcDip(java.lang.String param) {
+ this.localAcDip = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAcDmask() {
+ return localAcDmask;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AcDmask
+ */
+ public void setAcDmask(java.lang.String param) {
+ this.localAcDmask = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtocol() {
+ return localProtocol;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protocol
+ */
+ public void setProtocol(java.lang.String param) {
+ this.localProtocol = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSrcPortMin() {
+ return localSrcPortMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SrcPortMin
+ */
+ public void setSrcPortMin(java.lang.String param) {
+ this.localSrcPortMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSrcPortMax() {
+ return localSrcPortMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SrcPortMax
+ */
+ public void setSrcPortMax(java.lang.String param) {
+ this.localSrcPortMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDstPortMin() {
+ return localDstPortMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DstPortMin
+ */
+ public void setDstPortMin(java.lang.String param) {
+ this.localDstPortMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDstPortMax() {
+ return localDstPortMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DstPortMax
+ */
+ public void setDstPortMax(java.lang.String param) {
+ this.localDstPortMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modACProtectionForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modACProtectionForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "fixString", xmlWriter);
+
+ if (localFixString == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFixString);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "startLocation", xmlWriter);
+
+ if (localStartLocation == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStartLocation);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "endLocation", xmlWriter);
+
+ if (localEndLocation == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEndLocation);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "regularExpression", xmlWriter);
+
+ if (localRegularExpression == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localRegularExpression);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acSip", xmlWriter);
+
+ if (localAcSip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcSip);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acSmask", xmlWriter);
+
+ if (localAcSmask == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcSmask);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acDip", xmlWriter);
+
+ if (localAcDip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcDip);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "acDmask", xmlWriter);
+
+ if (localAcDmask == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAcDmask);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protocol", xmlWriter);
+
+ if (localProtocol == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtocol);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "srcPortMin", xmlWriter);
+
+ if (localSrcPortMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSrcPortMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "srcPortMax", xmlWriter);
+
+ if (localSrcPortMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSrcPortMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dstPortMin", xmlWriter);
+
+ if (localDstPortMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDstPortMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dstPortMax", xmlWriter);
+
+ if (localDstPortMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDstPortMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModACProtectionForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModACProtectionForUMC object = new ModACProtectionForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modACProtectionForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModACProtectionForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "fixString").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFixString(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "startLocation").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStartLocation(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "endLocation").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEndLocation(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "regularExpression").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setRegularExpression(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acSip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcSip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acSmask").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcSmask(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acDip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcDip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "acDmask").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAcDmask(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protocol").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtocol(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "srcPortMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSrcPortMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "srcPortMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSrcPortMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dstPortMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDstPortMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dstPortMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDstPortMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosDnsRetryProtectForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosDnsRetryProtectForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Alertthreshold
+ */
+ protected java.lang.String localAlertthreshold;
+
+ /* 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 localAlertthresholdTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isAlertthresholdSpecified() {
+ return localAlertthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAlertthreshold() {
+ return localAlertthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Alertthreshold
+ */
+ public void setAlertthreshold(java.lang.String param) {
+ localAlertthresholdTracker = true;
+
+ this.localAlertthreshold = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosDnsRetryProtectForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosDnsRetryProtectForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localAlertthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "alertthreshold", xmlWriter);
+
+ if (localAlertthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAlertthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosDnsRetryProtectForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosDnsRetryProtectForService object = new DdosDnsRetryProtectForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosDnsRetryProtectForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosDnsRetryProtectForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "alertthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAlertthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBypassManualTractionStrategyForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBypassManualTractionStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBypassManualTractionStrategyForUMCResponse object = new AddBypassManualTractionStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBypassManualTractionStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBypassManualTractionStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalAckPayloadFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalAckPayloadFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalAckPayloadForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalAckPayloadForService
+ */
+ public DdosGlobalAckPayloadForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalAckPayloadForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalAckPayloadFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalAckPayloadFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalAckPayloadFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalAckPayloadFromUMCResponse object = new GetDdosGlobalAckPayloadFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalAckPayloadFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalAckPayloadFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalAckPayloadForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModifyDetectionObjectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyDetectionObjectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modifyDetectionObjectForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modifyDetectionObjectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModifyDetectionObjectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModifyDetectionObjectForUMCResponse object = new ModifyDetectionObjectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modifyDetectionObjectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModifyDetectionObjectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsDomainGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsDomainGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addDnsDomainGlobalV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsDomainGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsDomainGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsDomainGlobalV4ForUMCResponse object = new AddDnsDomainGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsDomainGlobalV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsDomainGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosHttpGetUriGloProV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosHttpGetUriGloProV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosHttpGetUriGloProV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosHttpGetUriGloProV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosHttpGetUriGloProV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosHttpGetUriGloProV4ForService object = new DdosHttpGetUriGloProV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosHttpGetUriGloProV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosHttpGetUriGloProV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalSynFloodFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalSynFloodFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalSynFloodFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalSynFloodFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalSynFloodFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalSynFloodFromUMC object = new GetDdosGlobalSynFloodFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalSynFloodFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalSynFloodFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalAckPayloadFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalAckPayloadFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalAckPayloadFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalAckPayloadFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalAckPayloadFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalAckPayloadFromUMC object = new GetDdosGlobalAckPayloadFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalAckPayloadFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalAckPayloadFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsSipCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsSipCustomV4ForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDnsSipCustomV4ForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsSipCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsSipCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsSipCustomV4ForUMC object = new DelDnsSipCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsSipCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsSipCustomV4ForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DnsSecDomainCustomV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DnsSecDomainCustomV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * 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;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /* 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 localProtectthresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isDomainSpecified() {
+ return localDomainTracker;
+ }
+
+ /**
+ * 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) {
+ localDomainTracker = true;
+
+ this.localDomain = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isProtectthresholdSpecified() {
+ return localProtectthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ localProtectthresholdTracker = true;
+
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DnsSecDomainCustomV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DnsSecDomainCustomV4ForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localDomainTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "domain", xmlWriter);
+
+ if (localDomain == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDomain);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DnsSecDomainCustomV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DnsSecDomainCustomV4ForService object = new DnsSecDomainCustomV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DnsSecDomainCustomV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DnsSecDomainCustomV4ForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "domain").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDomain(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelBypassManualTractionStrategyForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBypassManualTractionStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delBypassManualTractionStrategyForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelBypassManualTractionStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelBypassManualTractionStrategyForUMCResponse object = new DelBypassManualTractionStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delBypassManualTractionStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelBypassManualTractionStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalIcmpFragForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalIcmpFragForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Icmpenable
+ */
+ protected java.lang.String localIcmpenable;
+
+ /* 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 localIcmpenableTracker = false;
+
+ /**
+ * field for Icmpthreshold
+ */
+ protected java.lang.String localIcmpthreshold;
+
+ /* 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 localIcmpthresholdTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ public boolean isIcmpenableSpecified() {
+ return localIcmpenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIcmpenable() {
+ return localIcmpenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Icmpenable
+ */
+ public void setIcmpenable(java.lang.String param) {
+ localIcmpenableTracker = true;
+
+ this.localIcmpenable = param;
+ }
+
+ public boolean isIcmpthresholdSpecified() {
+ return localIcmpthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIcmpthreshold() {
+ return localIcmpthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Icmpthreshold
+ */
+ public void setIcmpthreshold(java.lang.String param) {
+ localIcmpthresholdTracker = true;
+
+ this.localIcmpthreshold = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalIcmpFragForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalIcmpFragForService", xmlWriter);
+ }
+ }
+
+ if (localIcmpenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpenable", xmlWriter);
+
+ if (localIcmpenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIcmpenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIcmpthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpthreshold", xmlWriter);
+
+ if (localIcmpthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIcmpthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalIcmpFragForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalIcmpFragForService object = new DdosGlobalIcmpFragForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalIcmpFragForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalIcmpFragForService) 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://data.ntc.dp.com", "icmpenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "icmpthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpLengthFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpLengthFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalTcpLengthForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalTcpLengthForService
+ */
+ public DdosGlobalTcpLengthForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalTcpLengthForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalTcpLengthFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpLengthFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpLengthFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpLengthFromUMCResponse object = new GetDdosGlobalTcpLengthFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpLengthFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpLengthFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalTcpLengthForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalIcmpLengthFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpLengthFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalIcmpLengthForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalIcmpLengthForService
+ */
+ public DdosGlobalIcmpLengthForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalIcmpLengthForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalIcmpLengthFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalIcmpLengthFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalIcmpLengthFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalIcmpLengthFromUMCResponse object = new GetDdosGlobalIcmpLengthFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalIcmpLengthFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalIcmpLengthFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalIcmpLengthForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalUdpLengthForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpLengthForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Lengthenable
+ */
+ protected java.lang.String localLengthenable;
+
+ /**
+ * field for Minlength
+ */
+ protected java.lang.String localMinlength;
+
+ /**
+ * field for Maxlength
+ */
+ protected java.lang.String localMaxlength;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getLengthenable() {
+ return localLengthenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Lengthenable
+ */
+ public void setLengthenable(java.lang.String param) {
+ this.localLengthenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMinlength() {
+ return localMinlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Minlength
+ */
+ public void setMinlength(java.lang.String param) {
+ this.localMinlength = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMaxlength() {
+ return localMaxlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Maxlength
+ */
+ public void setMaxlength(java.lang.String param) {
+ this.localMaxlength = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalUdpLengthForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalUdpLengthForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "lengthenable", xmlWriter);
+
+ if (localLengthenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localLengthenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "minlength", xmlWriter);
+
+ if (localMinlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMinlength);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "maxlength", xmlWriter);
+
+ if (localMaxlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMaxlength);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalUdpLengthForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalUdpLengthForUMC object = new SetDdosGlobalUdpLengthForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalUdpLengthForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalUdpLengthForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "lengthenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setLengthenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "minlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMinlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "maxlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMaxlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddFingerprintOtherForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintOtherForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ this.localKeytype1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ this.localKeyoffset1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ this.localKeylength1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ this.localIp1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ this.localMask1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ this.localEnable1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ this.localCustom1 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ this.localKeytype2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ this.localKeyoffset2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ this.localKeylength2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ this.localIp2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ this.localMask2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ this.localEnable2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ this.localCustom2 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ this.localKeytype3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ this.localKeyoffset3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ this.localKeylength3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ this.localIp3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ this.localMask3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ this.localEnable3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ this.localCustom3 = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ this.localThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addFingerprintOtherForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addFingerprintOtherForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddFingerprintOtherForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddFingerprintOtherForUMC object = new AddFingerprintOtherForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addFingerprintOtherForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddFingerprintOtherForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StartAbnormalTaskForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "startAbnormalTaskForUMC", "ns1");
+
+ /**
+ * field for AbnormalIp
+ */
+ protected java.lang.String localAbnormalIp;
+
+ /**
+ * field for AttackType
+ */
+ protected int localAttackType;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAbnormalIp() {
+ return localAbnormalIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AbnormalIp
+ */
+ public void setAbnormalIp(java.lang.String param) {
+ this.localAbnormalIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAttackType() {
+ return localAttackType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AttackType
+ */
+ public void setAttackType(int param) {
+ this.localAttackType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ this.localDirection = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":startAbnormalTaskForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "startAbnormalTaskForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "abnormalIp", xmlWriter);
+
+ if (localAbnormalIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAbnormalIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "attackType", xmlWriter);
+
+ if (localAttackType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "attackType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAttackType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StartAbnormalTaskForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StartAbnormalTaskForUMC object = new StartAbnormalTaskForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"startAbnormalTaskForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StartAbnormalTaskForUMC) 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://service.ntc.dp.com", "abnormalIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAbnormalIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "attackType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "attackType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAttackType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsSecDomainGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSecDomainGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDnsSecDomainGlobalV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsSecDomainGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsSecDomainGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsSecDomainGlobalV4ForUMC object = new ModDnsSecDomainGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsSecDomainGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsSecDomainGlobalV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDnsSipGlobalV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDnsSipGlobalV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DnsSipGlobalV4ForService
+ * This was an Array!
+ */
+ protected DnsSipGlobalV4ForService[] localDnsSipGlobalV4ForService;
+
+ /* 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 localDnsSipGlobalV4ForServiceTracker = false;
+
+ public boolean isDnsSipGlobalV4ForServiceSpecified() {
+ return localDnsSipGlobalV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DnsSipGlobalV4ForService[]
+ */
+ public DnsSipGlobalV4ForService[] getDnsSipGlobalV4ForService() {
+ return localDnsSipGlobalV4ForService;
+ }
+
+ /**
+ * validate the array for DnsSipGlobalV4ForService
+ */
+ protected void validateDnsSipGlobalV4ForService(
+ DnsSipGlobalV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsSipGlobalV4ForService
+ */
+ public void setDnsSipGlobalV4ForService(
+ DnsSipGlobalV4ForService[] param) {
+ validateDnsSipGlobalV4ForService(param);
+
+ localDnsSipGlobalV4ForServiceTracker = true;
+
+ this.localDnsSipGlobalV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DnsSipGlobalV4ForService
+ */
+ public void addDnsSipGlobalV4ForService(DnsSipGlobalV4ForService param) {
+ if (localDnsSipGlobalV4ForService == null) {
+ localDnsSipGlobalV4ForService = new DnsSipGlobalV4ForService[] { };
+ }
+
+ //update the setting tracker
+ localDnsSipGlobalV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDnsSipGlobalV4ForService);
+ list.add(param);
+ this.localDnsSipGlobalV4ForService = (DnsSipGlobalV4ForService[]) list.toArray(new DnsSipGlobalV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfDnsSipGlobalV4ForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDnsSipGlobalV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDnsSipGlobalV4ForServiceTracker) {
+ if (localDnsSipGlobalV4ForService != null) {
+ for (int i = 0; i < localDnsSipGlobalV4ForService.length;
+ i++) {
+ if (localDnsSipGlobalV4ForService[i] != null) {
+ localDnsSipGlobalV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DnsSipGlobalV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSipGlobalV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSipGlobalV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDnsSipGlobalV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDnsSipGlobalV4ForService object = new ArrayOfDnsSipGlobalV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDnsSipGlobalV4ForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDnsSipGlobalV4ForService) 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://data.ntc.dp.com",
+ "DnsSipGlobalV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSipGlobalV4ForService.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://data.ntc.dp.com",
+ "DnsSipGlobalV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSipGlobalV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDnsSipGlobalV4ForService((DnsSipGlobalV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DnsSipGlobalV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class FingerprintUdpForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = FingerprintUdpForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /* 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 localCustom1Tracker = false;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /* 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 localCustom2Tracker = false;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /* 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 localCustom3Tracker = false;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /* 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 localEnable1Tracker = false;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /* 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 localEnable2Tracker = false;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /* 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 localEnable3Tracker = false;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /* 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 localIp1Tracker = false;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /* 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 localIp2Tracker = false;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /* 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 localIp3Tracker = false;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /* 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 localKeylength1Tracker = false;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /* 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 localKeylength2Tracker = false;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /* 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 localKeylength3Tracker = false;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /* 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 localKeyoffset1Tracker = false;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /* 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 localKeyoffset2Tracker = false;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /* 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 localKeyoffset3Tracker = false;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /* 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 localKeytype1Tracker = false;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /* 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 localKeytype2Tracker = false;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /* 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 localKeytype3Tracker = false;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /* 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 localMask1Tracker = false;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /* 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 localMask2Tracker = false;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /* 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 localMask3Tracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Port1
+ */
+ protected java.lang.String localPort1;
+
+ /* 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 localPort1Tracker = false;
+
+ /**
+ * field for Port2
+ */
+ protected java.lang.String localPort2;
+
+ /* 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 localPort2Tracker = false;
+
+ /**
+ * field for Port3
+ */
+ protected java.lang.String localPort3;
+
+ /* 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 localPort3Tracker = false;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /* 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 localThresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isCustom1Specified() {
+ return localCustom1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ localCustom1Tracker = true;
+
+ this.localCustom1 = param;
+ }
+
+ public boolean isCustom2Specified() {
+ return localCustom2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ localCustom2Tracker = true;
+
+ this.localCustom2 = param;
+ }
+
+ public boolean isCustom3Specified() {
+ return localCustom3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ localCustom3Tracker = true;
+
+ this.localCustom3 = param;
+ }
+
+ public boolean isEnable1Specified() {
+ return localEnable1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ localEnable1Tracker = true;
+
+ this.localEnable1 = param;
+ }
+
+ public boolean isEnable2Specified() {
+ return localEnable2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ localEnable2Tracker = true;
+
+ this.localEnable2 = param;
+ }
+
+ public boolean isEnable3Specified() {
+ return localEnable3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ localEnable3Tracker = true;
+
+ this.localEnable3 = param;
+ }
+
+ public boolean isIp1Specified() {
+ return localIp1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ localIp1Tracker = true;
+
+ this.localIp1 = param;
+ }
+
+ public boolean isIp2Specified() {
+ return localIp2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ localIp2Tracker = true;
+
+ this.localIp2 = param;
+ }
+
+ public boolean isIp3Specified() {
+ return localIp3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ localIp3Tracker = true;
+
+ this.localIp3 = param;
+ }
+
+ public boolean isKeylength1Specified() {
+ return localKeylength1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ localKeylength1Tracker = true;
+
+ this.localKeylength1 = param;
+ }
+
+ public boolean isKeylength2Specified() {
+ return localKeylength2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ localKeylength2Tracker = true;
+
+ this.localKeylength2 = param;
+ }
+
+ public boolean isKeylength3Specified() {
+ return localKeylength3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ localKeylength3Tracker = true;
+
+ this.localKeylength3 = param;
+ }
+
+ public boolean isKeyoffset1Specified() {
+ return localKeyoffset1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ localKeyoffset1Tracker = true;
+
+ this.localKeyoffset1 = param;
+ }
+
+ public boolean isKeyoffset2Specified() {
+ return localKeyoffset2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ localKeyoffset2Tracker = true;
+
+ this.localKeyoffset2 = param;
+ }
+
+ public boolean isKeyoffset3Specified() {
+ return localKeyoffset3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ localKeyoffset3Tracker = true;
+
+ this.localKeyoffset3 = param;
+ }
+
+ public boolean isKeytype1Specified() {
+ return localKeytype1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ localKeytype1Tracker = true;
+
+ this.localKeytype1 = param;
+ }
+
+ public boolean isKeytype2Specified() {
+ return localKeytype2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ localKeytype2Tracker = true;
+
+ this.localKeytype2 = param;
+ }
+
+ public boolean isKeytype3Specified() {
+ return localKeytype3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ localKeytype3Tracker = true;
+
+ this.localKeytype3 = param;
+ }
+
+ public boolean isMask1Specified() {
+ return localMask1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ localMask1Tracker = true;
+
+ this.localMask1 = param;
+ }
+
+ public boolean isMask2Specified() {
+ return localMask2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ localMask2Tracker = true;
+
+ this.localMask2 = param;
+ }
+
+ public boolean isMask3Specified() {
+ return localMask3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ localMask3Tracker = true;
+
+ this.localMask3 = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isPort1Specified() {
+ return localPort1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort1() {
+ return localPort1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port1
+ */
+ public void setPort1(java.lang.String param) {
+ localPort1Tracker = true;
+
+ this.localPort1 = param;
+ }
+
+ public boolean isPort2Specified() {
+ return localPort2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort2() {
+ return localPort2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port2
+ */
+ public void setPort2(java.lang.String param) {
+ localPort2Tracker = true;
+
+ this.localPort2 = param;
+ }
+
+ public boolean isPort3Specified() {
+ return localPort3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort3() {
+ return localPort3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port3
+ */
+ public void setPort3(java.lang.String param) {
+ localPort3Tracker = true;
+
+ this.localPort3 = param;
+ }
+
+ public boolean isThresholdSpecified() {
+ return localThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ localThresholdTracker = true;
+
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":FingerprintUdpForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "FingerprintUdpForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPort1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "port1", xmlWriter);
+
+ if (localPort1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPort2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "port2", xmlWriter);
+
+ if (localPort2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPort3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "port3", xmlWriter);
+
+ if (localPort3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 FingerprintUdpForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ FingerprintUdpForService object = new FingerprintUdpForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"FingerprintUdpForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (FingerprintUdpForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "port1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "port2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "port3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetSipGloProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipGloProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addDdosHttpGetSipGloProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetSipGloProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetSipGloProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetSipGloProV4ForUMCResponse object = new AddDdosHttpGetSipGloProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetSipGloProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetSipGloProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalUdpFragFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpFragFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalUdpFragForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalUdpFragForService
+ */
+ public DdosGlobalUdpFragForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalUdpFragForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalUdpFragFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalUdpFragFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalUdpFragFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalUdpFragFromUMCResponse object = new GetDdosGlobalUdpFragFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalUdpFragFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalUdpFragFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalUdpFragForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosACProtectionForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosACProtectionForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDdosACProtectionForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosACProtectionForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosACProtectionForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosACProtectionForUMCResponse object = new DelDdosACProtectionForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosACProtectionForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosACProtectionForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetUriCusProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriCusProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDdosHttpGetUriCusProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetUriCusProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetUriCusProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetUriCusProV4ForUMCResponse object = new ModDdosHttpGetUriCusProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetUriCusProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetUriCusProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopAbnormalTaskForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopAbnormalTaskForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":stopAbnormalTaskForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopAbnormalTaskForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopAbnormalTaskForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopAbnormalTaskForUMCResponse object = new StopAbnormalTaskForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopAbnormalTaskForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopAbnormalTaskForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBlackHoleAutoStrategyFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackHoleAutoStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfBlackHoleAutoStrategyForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfBlackHoleAutoStrategyForService
+ */
+ public ArrayOfBlackHoleAutoStrategyForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfBlackHoleAutoStrategyForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBlackHoleAutoStrategyFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBlackHoleAutoStrategyFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBlackHoleAutoStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBlackHoleAutoStrategyFromUMCResponse object = new GetAllBlackHoleAutoStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBlackHoleAutoStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBlackHoleAutoStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfBlackHoleAutoStrategyForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBlackAndWhiteListProtectionResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackAndWhiteListProtectionResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addBlackAndWhiteListProtectionResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBlackAndWhiteListProtectionResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBlackAndWhiteListProtectionResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBlackAndWhiteListProtectionResponse object = new AddBlackAndWhiteListProtectionResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBlackAndWhiteListProtectionResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBlackAndWhiteListProtectionResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModFingerprintIcmpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modFingerprintIcmpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modFingerprintIcmpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modFingerprintIcmpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModFingerprintIcmpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModFingerprintIcmpForUMCResponse object = new ModFingerprintIcmpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modFingerprintIcmpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModFingerprintIcmpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBlackHoleManualStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBlackHoleManualStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for DetectName
+ */
+ protected java.lang.String localDetectName;
+
+ /**
+ * field for IpAddress
+ */
+ protected java.lang.String localIpAddress;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectName() {
+ return localDetectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectName
+ */
+ public void setDetectName(java.lang.String param) {
+ this.localDetectName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpAddress() {
+ return localIpAddress;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpAddress
+ */
+ public void setIpAddress(java.lang.String param) {
+ this.localIpAddress = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addBlackHoleManualStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBlackHoleManualStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectName", xmlWriter);
+
+ if (localDetectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipAddress", xmlWriter);
+
+ if (localIpAddress == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpAddress);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBlackHoleManualStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBlackHoleManualStrategyForUMC object = new AddBlackHoleManualStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBlackHoleManualStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBlackHoleManualStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipAddress").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpAddress(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllCompleteAnomalyDetectionStrategyFromUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllCompleteAnomalyDetectionStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfAnomalyDetectionStrategy localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfAnomalyDetectionStrategy
+ */
+ public ArrayOfAnomalyDetectionStrategy getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfAnomalyDetectionStrategy param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllCompleteAnomalyDetectionStrategyFromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllCompleteAnomalyDetectionStrategyFromUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllCompleteAnomalyDetectionStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllCompleteAnomalyDetectionStrategyFromUMCResponse object = new GetAllCompleteAnomalyDetectionStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllCompleteAnomalyDetectionStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllCompleteAnomalyDetectionStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfAnomalyDetectionStrategy.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosACProtectionForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosACProtectionForUMC", "ns1");
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delDdosACProtectionForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosACProtectionForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosACProtectionForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosACProtectionForUMC object = new DelDdosACProtectionForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosACProtectionForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosACProtectionForUMC) 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://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetFingerprintTcpFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintTcpFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getFingerprintTcpFromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getFingerprintTcpFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetFingerprintTcpFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetFingerprintTcpFromUMC object = new GetFingerprintTcpFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getFingerprintTcpFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetFingerprintTcpFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalTcpLengthForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpLengthForUMC", "ns1");
+
+ /**
+ * field for Synenable
+ */
+ protected java.lang.String localSynenable;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for SynMin
+ */
+ protected java.lang.String localSynMin;
+
+ /**
+ * field for SynMax
+ */
+ protected java.lang.String localSynMax;
+
+ /**
+ * field for Synackenable
+ */
+ protected java.lang.String localSynackenable;
+
+ /**
+ * field for SynackMin
+ */
+ protected java.lang.String localSynackMin;
+
+ /**
+ * field for SynackMax
+ */
+ protected java.lang.String localSynackMax;
+
+ /**
+ * field for Finenable
+ */
+ protected java.lang.String localFinenable;
+
+ /**
+ * field for FinMin
+ */
+ protected java.lang.String localFinMin;
+
+ /**
+ * field for FinMax
+ */
+ protected java.lang.String localFinMax;
+
+ /**
+ * field for Rstenable
+ */
+ protected java.lang.String localRstenable;
+
+ /**
+ * field for RstMin
+ */
+ protected java.lang.String localRstMin;
+
+ /**
+ * field for RstMax
+ */
+ protected java.lang.String localRstMax;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSynenable() {
+ return localSynenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Synenable
+ */
+ public void setSynenable(java.lang.String param) {
+ this.localSynenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSynMin() {
+ return localSynMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynMin
+ */
+ public void setSynMin(java.lang.String param) {
+ this.localSynMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSynMax() {
+ return localSynMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynMax
+ */
+ public void setSynMax(java.lang.String param) {
+ this.localSynMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSynackenable() {
+ return localSynackenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Synackenable
+ */
+ public void setSynackenable(java.lang.String param) {
+ this.localSynackenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSynackMin() {
+ return localSynackMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynackMin
+ */
+ public void setSynackMin(java.lang.String param) {
+ this.localSynackMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSynackMax() {
+ return localSynackMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynackMax
+ */
+ public void setSynackMax(java.lang.String param) {
+ this.localSynackMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFinenable() {
+ return localFinenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Finenable
+ */
+ public void setFinenable(java.lang.String param) {
+ this.localFinenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFinMin() {
+ return localFinMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FinMin
+ */
+ public void setFinMin(java.lang.String param) {
+ this.localFinMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFinMax() {
+ return localFinMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FinMax
+ */
+ public void setFinMax(java.lang.String param) {
+ this.localFinMax = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getRstenable() {
+ return localRstenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Rstenable
+ */
+ public void setRstenable(java.lang.String param) {
+ this.localRstenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getRstMin() {
+ return localRstMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param RstMin
+ */
+ public void setRstMin(java.lang.String param) {
+ this.localRstMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getRstMax() {
+ return localRstMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param RstMax
+ */
+ public void setRstMax(java.lang.String param) {
+ this.localRstMax = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalTcpLengthForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalTcpLengthForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synenable", xmlWriter);
+
+ if (localSynenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSynenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synMin", xmlWriter);
+
+ if (localSynMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSynMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synMax", xmlWriter);
+
+ if (localSynMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSynMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synackenable", xmlWriter);
+
+ if (localSynackenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSynackenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synackMin", xmlWriter);
+
+ if (localSynackMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSynackMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synackMax", xmlWriter);
+
+ if (localSynackMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSynackMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finenable", xmlWriter);
+
+ if (localFinenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFinenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finMin", xmlWriter);
+
+ if (localFinMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFinMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finMax", xmlWriter);
+
+ if (localFinMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFinMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "rstenable", xmlWriter);
+
+ if (localRstenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localRstenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "rstMin", xmlWriter);
+
+ if (localRstMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localRstMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "rstMax", xmlWriter);
+
+ if (localRstMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localRstMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalTcpLengthForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalTcpLengthForUMC object = new SetDdosGlobalTcpLengthForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalTcpLengthForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalTcpLengthForUMC) 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://service.ntc.dp.com", "synenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSynenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSynMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSynMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synackenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSynackenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synackMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSynackMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synackMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSynackMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "finenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFinenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "finMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFinMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "finMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFinMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "rstenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setRstenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "rstMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setRstMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "rstMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setRstMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsDomainGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsDomainGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDnsDomainGlobalV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsDomainGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsDomainGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsDomainGlobalV4ForUMCResponse object = new ModDnsDomainGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsDomainGlobalV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsDomainGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class FingerprintTcpForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = FingerprintTcpForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /* 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 localActionTracker = false;
+
+ /**
+ * field for Custom1
+ */
+ protected java.lang.String localCustom1;
+
+ /* 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 localCustom1Tracker = false;
+
+ /**
+ * field for Custom2
+ */
+ protected java.lang.String localCustom2;
+
+ /* 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 localCustom2Tracker = false;
+
+ /**
+ * field for Custom3
+ */
+ protected java.lang.String localCustom3;
+
+ /* 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 localCustom3Tracker = false;
+
+ /**
+ * field for Enable1
+ */
+ protected java.lang.String localEnable1;
+
+ /* 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 localEnable1Tracker = false;
+
+ /**
+ * field for Enable2
+ */
+ protected java.lang.String localEnable2;
+
+ /* 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 localEnable2Tracker = false;
+
+ /**
+ * field for Enable3
+ */
+ protected java.lang.String localEnable3;
+
+ /* 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 localEnable3Tracker = false;
+
+ /**
+ * field for Flag1
+ */
+ protected java.lang.String localFlag1;
+
+ /* 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 localFlag1Tracker = false;
+
+ /**
+ * field for Flag2
+ */
+ protected java.lang.String localFlag2;
+
+ /* 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 localFlag2Tracker = false;
+
+ /**
+ * field for Flag3
+ */
+ protected java.lang.String localFlag3;
+
+ /* 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 localFlag3Tracker = false;
+
+ /**
+ * field for Ip1
+ */
+ protected java.lang.String localIp1;
+
+ /* 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 localIp1Tracker = false;
+
+ /**
+ * field for Ip2
+ */
+ protected java.lang.String localIp2;
+
+ /* 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 localIp2Tracker = false;
+
+ /**
+ * field for Ip3
+ */
+ protected java.lang.String localIp3;
+
+ /* 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 localIp3Tracker = false;
+
+ /**
+ * field for Keylength1
+ */
+ protected java.lang.String localKeylength1;
+
+ /* 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 localKeylength1Tracker = false;
+
+ /**
+ * field for Keylength2
+ */
+ protected java.lang.String localKeylength2;
+
+ /* 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 localKeylength2Tracker = false;
+
+ /**
+ * field for Keylength3
+ */
+ protected java.lang.String localKeylength3;
+
+ /* 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 localKeylength3Tracker = false;
+
+ /**
+ * field for Keyoffset1
+ */
+ protected java.lang.String localKeyoffset1;
+
+ /* 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 localKeyoffset1Tracker = false;
+
+ /**
+ * field for Keyoffset2
+ */
+ protected java.lang.String localKeyoffset2;
+
+ /* 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 localKeyoffset2Tracker = false;
+
+ /**
+ * field for Keyoffset3
+ */
+ protected java.lang.String localKeyoffset3;
+
+ /* 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 localKeyoffset3Tracker = false;
+
+ /**
+ * field for Keytype1
+ */
+ protected java.lang.String localKeytype1;
+
+ /* 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 localKeytype1Tracker = false;
+
+ /**
+ * field for Keytype2
+ */
+ protected java.lang.String localKeytype2;
+
+ /* 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 localKeytype2Tracker = false;
+
+ /**
+ * field for Keytype3
+ */
+ protected java.lang.String localKeytype3;
+
+ /* 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 localKeytype3Tracker = false;
+
+ /**
+ * field for Mask1
+ */
+ protected java.lang.String localMask1;
+
+ /* 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 localMask1Tracker = false;
+
+ /**
+ * field for Mask2
+ */
+ protected java.lang.String localMask2;
+
+ /* 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 localMask2Tracker = false;
+
+ /**
+ * field for Mask3
+ */
+ protected java.lang.String localMask3;
+
+ /* 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 localMask3Tracker = false;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /* 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 localNameTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Port1
+ */
+ protected java.lang.String localPort1;
+
+ /* 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 localPort1Tracker = false;
+
+ /**
+ * field for Port2
+ */
+ protected java.lang.String localPort2;
+
+ /* 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 localPort2Tracker = false;
+
+ /**
+ * field for Port3
+ */
+ protected java.lang.String localPort3;
+
+ /* 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 localPort3Tracker = false;
+
+ /**
+ * field for Threshold
+ */
+ protected java.lang.String localThreshold;
+
+ /* 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 localThresholdTracker = false;
+
+ public boolean isActionSpecified() {
+ return localActionTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ localActionTracker = true;
+
+ this.localAction = param;
+ }
+
+ public boolean isCustom1Specified() {
+ return localCustom1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom1() {
+ return localCustom1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom1
+ */
+ public void setCustom1(java.lang.String param) {
+ localCustom1Tracker = true;
+
+ this.localCustom1 = param;
+ }
+
+ public boolean isCustom2Specified() {
+ return localCustom2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom2() {
+ return localCustom2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom2
+ */
+ public void setCustom2(java.lang.String param) {
+ localCustom2Tracker = true;
+
+ this.localCustom2 = param;
+ }
+
+ public boolean isCustom3Specified() {
+ return localCustom3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCustom3() {
+ return localCustom3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Custom3
+ */
+ public void setCustom3(java.lang.String param) {
+ localCustom3Tracker = true;
+
+ this.localCustom3 = param;
+ }
+
+ public boolean isEnable1Specified() {
+ return localEnable1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable1() {
+ return localEnable1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable1
+ */
+ public void setEnable1(java.lang.String param) {
+ localEnable1Tracker = true;
+
+ this.localEnable1 = param;
+ }
+
+ public boolean isEnable2Specified() {
+ return localEnable2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable2() {
+ return localEnable2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable2
+ */
+ public void setEnable2(java.lang.String param) {
+ localEnable2Tracker = true;
+
+ this.localEnable2 = param;
+ }
+
+ public boolean isEnable3Specified() {
+ return localEnable3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getEnable3() {
+ return localEnable3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Enable3
+ */
+ public void setEnable3(java.lang.String param) {
+ localEnable3Tracker = true;
+
+ this.localEnable3 = param;
+ }
+
+ public boolean isFlag1Specified() {
+ return localFlag1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag1() {
+ return localFlag1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag1
+ */
+ public void setFlag1(java.lang.String param) {
+ localFlag1Tracker = true;
+
+ this.localFlag1 = param;
+ }
+
+ public boolean isFlag2Specified() {
+ return localFlag2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag2() {
+ return localFlag2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag2
+ */
+ public void setFlag2(java.lang.String param) {
+ localFlag2Tracker = true;
+
+ this.localFlag2 = param;
+ }
+
+ public boolean isFlag3Specified() {
+ return localFlag3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getFlag3() {
+ return localFlag3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Flag3
+ */
+ public void setFlag3(java.lang.String param) {
+ localFlag3Tracker = true;
+
+ this.localFlag3 = param;
+ }
+
+ public boolean isIp1Specified() {
+ return localIp1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp1() {
+ return localIp1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip1
+ */
+ public void setIp1(java.lang.String param) {
+ localIp1Tracker = true;
+
+ this.localIp1 = param;
+ }
+
+ public boolean isIp2Specified() {
+ return localIp2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp2() {
+ return localIp2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip2
+ */
+ public void setIp2(java.lang.String param) {
+ localIp2Tracker = true;
+
+ this.localIp2 = param;
+ }
+
+ public boolean isIp3Specified() {
+ return localIp3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIp3() {
+ return localIp3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Ip3
+ */
+ public void setIp3(java.lang.String param) {
+ localIp3Tracker = true;
+
+ this.localIp3 = param;
+ }
+
+ public boolean isKeylength1Specified() {
+ return localKeylength1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength1() {
+ return localKeylength1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength1
+ */
+ public void setKeylength1(java.lang.String param) {
+ localKeylength1Tracker = true;
+
+ this.localKeylength1 = param;
+ }
+
+ public boolean isKeylength2Specified() {
+ return localKeylength2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength2() {
+ return localKeylength2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength2
+ */
+ public void setKeylength2(java.lang.String param) {
+ localKeylength2Tracker = true;
+
+ this.localKeylength2 = param;
+ }
+
+ public boolean isKeylength3Specified() {
+ return localKeylength3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeylength3() {
+ return localKeylength3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keylength3
+ */
+ public void setKeylength3(java.lang.String param) {
+ localKeylength3Tracker = true;
+
+ this.localKeylength3 = param;
+ }
+
+ public boolean isKeyoffset1Specified() {
+ return localKeyoffset1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset1() {
+ return localKeyoffset1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset1
+ */
+ public void setKeyoffset1(java.lang.String param) {
+ localKeyoffset1Tracker = true;
+
+ this.localKeyoffset1 = param;
+ }
+
+ public boolean isKeyoffset2Specified() {
+ return localKeyoffset2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset2() {
+ return localKeyoffset2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset2
+ */
+ public void setKeyoffset2(java.lang.String param) {
+ localKeyoffset2Tracker = true;
+
+ this.localKeyoffset2 = param;
+ }
+
+ public boolean isKeyoffset3Specified() {
+ return localKeyoffset3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeyoffset3() {
+ return localKeyoffset3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keyoffset3
+ */
+ public void setKeyoffset3(java.lang.String param) {
+ localKeyoffset3Tracker = true;
+
+ this.localKeyoffset3 = param;
+ }
+
+ public boolean isKeytype1Specified() {
+ return localKeytype1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype1() {
+ return localKeytype1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype1
+ */
+ public void setKeytype1(java.lang.String param) {
+ localKeytype1Tracker = true;
+
+ this.localKeytype1 = param;
+ }
+
+ public boolean isKeytype2Specified() {
+ return localKeytype2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype2() {
+ return localKeytype2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype2
+ */
+ public void setKeytype2(java.lang.String param) {
+ localKeytype2Tracker = true;
+
+ this.localKeytype2 = param;
+ }
+
+ public boolean isKeytype3Specified() {
+ return localKeytype3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getKeytype3() {
+ return localKeytype3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Keytype3
+ */
+ public void setKeytype3(java.lang.String param) {
+ localKeytype3Tracker = true;
+
+ this.localKeytype3 = param;
+ }
+
+ public boolean isMask1Specified() {
+ return localMask1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask1() {
+ return localMask1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask1
+ */
+ public void setMask1(java.lang.String param) {
+ localMask1Tracker = true;
+
+ this.localMask1 = param;
+ }
+
+ public boolean isMask2Specified() {
+ return localMask2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask2() {
+ return localMask2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask2
+ */
+ public void setMask2(java.lang.String param) {
+ localMask2Tracker = true;
+
+ this.localMask2 = param;
+ }
+
+ public boolean isMask3Specified() {
+ return localMask3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMask3() {
+ return localMask3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Mask3
+ */
+ public void setMask3(java.lang.String param) {
+ localMask3Tracker = true;
+
+ this.localMask3 = param;
+ }
+
+ public boolean isNameSpecified() {
+ return localNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ localNameTracker = true;
+
+ this.localName = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isPort1Specified() {
+ return localPort1Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort1() {
+ return localPort1;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port1
+ */
+ public void setPort1(java.lang.String param) {
+ localPort1Tracker = true;
+
+ this.localPort1 = param;
+ }
+
+ public boolean isPort2Specified() {
+ return localPort2Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort2() {
+ return localPort2;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port2
+ */
+ public void setPort2(java.lang.String param) {
+ localPort2Tracker = true;
+
+ this.localPort2 = param;
+ }
+
+ public boolean isPort3Specified() {
+ return localPort3Tracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPort3() {
+ return localPort3;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Port3
+ */
+ public void setPort3(java.lang.String param) {
+ localPort3Tracker = true;
+
+ this.localPort3 = param;
+ }
+
+ public boolean isThresholdSpecified() {
+ return localThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getThreshold() {
+ return localThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Threshold
+ */
+ public void setThreshold(java.lang.String param) {
+ localThresholdTracker = true;
+
+ this.localThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":FingerprintTcpForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "FingerprintTcpForService", xmlWriter);
+ }
+ }
+
+ if (localActionTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom1", xmlWriter);
+
+ if (localCustom1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom2", xmlWriter);
+
+ if (localCustom2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localCustom3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "custom3", xmlWriter);
+
+ if (localCustom3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCustom3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable1", xmlWriter);
+
+ if (localEnable1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable2", xmlWriter);
+
+ if (localEnable2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localEnable3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "enable3", xmlWriter);
+
+ if (localEnable3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localEnable3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localFlag1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "flag1", xmlWriter);
+
+ if (localFlag1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localFlag2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "flag2", xmlWriter);
+
+ if (localFlag2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localFlag3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "flag3", xmlWriter);
+
+ if (localFlag3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localFlag3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip1", xmlWriter);
+
+ if (localIp1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip2", xmlWriter);
+
+ if (localIp2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIp3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ip3", xmlWriter);
+
+ if (localIp3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIp3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength1", xmlWriter);
+
+ if (localKeylength1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength2", xmlWriter);
+
+ if (localKeylength2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeylength3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keylength3", xmlWriter);
+
+ if (localKeylength3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeylength3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset1", xmlWriter);
+
+ if (localKeyoffset1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset2", xmlWriter);
+
+ if (localKeyoffset2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeyoffset3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keyoffset3", xmlWriter);
+
+ if (localKeyoffset3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeyoffset3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype1", xmlWriter);
+
+ if (localKeytype1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype2", xmlWriter);
+
+ if (localKeytype2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localKeytype3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "keytype3", xmlWriter);
+
+ if (localKeytype3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localKeytype3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask1", xmlWriter);
+
+ if (localMask1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask2", xmlWriter);
+
+ if (localMask2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMask3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "mask3", xmlWriter);
+
+ if (localMask3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMask3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPort1Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "port1", xmlWriter);
+
+ if (localPort1 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort1);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPort2Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "port2", xmlWriter);
+
+ if (localPort2 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort2);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPort3Tracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "port3", xmlWriter);
+
+ if (localPort3 == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPort3);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "threshold", xmlWriter);
+
+ if (localThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 FingerprintTcpForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ FingerprintTcpForService object = new FingerprintTcpForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"FingerprintTcpForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (FingerprintTcpForService) 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://data.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "custom3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCustom3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "enable3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setEnable3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "flag1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "flag2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "flag3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setFlag3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ip3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIp3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keylength3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeylength3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keyoffset3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeyoffset3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "keytype3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setKeytype3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "mask3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMask3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "port1").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort1(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "port2").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort2(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "port3").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPort3(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "threshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalIcmpPayloadForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpPayloadForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Payloadcontentenable
+ */
+ protected java.lang.String localPayloadcontentenable;
+
+ /**
+ * field for PayloadThreshold
+ */
+ protected java.lang.String localPayloadThreshold;
+
+ /**
+ * field for PayloadOffsetMin
+ */
+ protected java.lang.String localPayloadOffsetMin;
+
+ /**
+ * field for PayloadOffsetMax
+ */
+ protected java.lang.String localPayloadOffsetMax;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadcontentenable() {
+ return localPayloadcontentenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Payloadcontentenable
+ */
+ public void setPayloadcontentenable(java.lang.String param) {
+ this.localPayloadcontentenable = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadThreshold() {
+ return localPayloadThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadThreshold
+ */
+ public void setPayloadThreshold(java.lang.String param) {
+ this.localPayloadThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMin() {
+ return localPayloadOffsetMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMin
+ */
+ public void setPayloadOffsetMin(java.lang.String param) {
+ this.localPayloadOffsetMin = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMax() {
+ return localPayloadOffsetMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMax
+ */
+ public void setPayloadOffsetMax(java.lang.String param) {
+ this.localPayloadOffsetMax = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":setDdosGlobalIcmpPayloadForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalIcmpPayloadForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadcontentenable", xmlWriter);
+
+ if (localPayloadcontentenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadcontentenable);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadThreshold", xmlWriter);
+
+ if (localPayloadThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMin", xmlWriter);
+
+ if (localPayloadOffsetMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMin);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMax", xmlWriter);
+
+ if (localPayloadOffsetMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMax);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalIcmpPayloadForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalIcmpPayloadForUMC object = new SetDdosGlobalIcmpPayloadForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalIcmpPayloadForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalIcmpPayloadForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "payloadcontentenable").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadcontentenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "payloadThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "payloadOffsetMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "payloadOffsetMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSecDomainGlobalV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainGlobalV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addDnsSecDomainGlobalV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSecDomainGlobalV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSecDomainGlobalV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSecDomainGlobalV4ForUMCResponse object = new AddDnsSecDomainGlobalV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSecDomainGlobalV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSecDomainGlobalV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DeleteDetectionObjectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "deleteDetectionObjectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":deleteDetectionObjectForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "deleteDetectionObjectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DeleteDetectionObjectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DeleteDetectionObjectForUMCResponse object = new DeleteDetectionObjectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"deleteDetectionObjectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DeleteDetectionObjectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddProtectionObjectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addProtectionObjectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addProtectionObjectForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addProtectionObjectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddProtectionObjectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddProtectionObjectForUMCResponse object = new AddProtectionObjectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addProtectionObjectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddProtectionObjectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSipCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDnsSipCustomV4ForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSipCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSipCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSipCustomV4ForUMCResponse object = new AddDnsSipCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSipCustomV4ForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSipCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsDomainGlobalV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsDomainGlobalV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsDomainGlobalV4FromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsDomainGlobalV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsDomainGlobalV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsDomainGlobalV4FromUMC object = new GetDnsDomainGlobalV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsDomainGlobalV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsDomainGlobalV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBlackHoleAutoStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleAutoStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modBlackHoleAutoStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBlackHoleAutoStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBlackHoleAutoStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBlackHoleAutoStrategyForUMCResponse object = new ModBlackHoleAutoStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBlackHoleAutoStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBlackHoleAutoStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModifyProtectionObjectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modifyProtectionObjectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modifyProtectionObjectForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modifyProtectionObjectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModifyProtectionObjectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModifyProtectionObjectForUMCResponse object = new ModifyProtectionObjectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modifyProtectionObjectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModifyProtectionObjectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBlackHoleManualStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackHoleManualStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modBlackHoleManualStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBlackHoleManualStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBlackHoleManualStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBlackHoleManualStrategyForUMCResponse object = new ModBlackHoleManualStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBlackHoleManualStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBlackHoleManualStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalTcpFragFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalTcpFragFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalTcpFragFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalTcpFragFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalTcpFragFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalTcpFragFromUMC object = new GetDdosGlobalTcpFragFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalTcpFragFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalTcpFragFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSipCustomV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipCustomV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsSipCustomV4FromUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSipCustomV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSipCustomV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSipCustomV4FromUMC object = new GetDnsSipCustomV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSipCustomV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSipCustomV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSecDomainGlobalV4FromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSecDomainGlobalV4FromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsSecDomainGlobalV4FromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSecDomainGlobalV4FromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSecDomainGlobalV4FromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSecDomainGlobalV4FromUMC object = new GetDnsSecDomainGlobalV4FromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSecDomainGlobalV4FromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSecDomainGlobalV4FromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse",
+ "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfProtectionTargetWithStrategyForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfProtectionTargetWithStrategyForService
+ */
+ public ArrayOfProtectionTargetWithStrategyForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfProtectionTargetWithStrategyForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse object =
+ new GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllProtectionTargetWithStrategyAssociationRelationshipForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfProtectionTargetWithStrategyForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosDnsRetryProtectFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosDnsRetryProtectFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosDnsRetryProtectFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosDnsRetryProtectFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosDnsRetryProtectFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosDnsRetryProtectFromUMC object = new GetDdosDnsRetryProtectFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosDnsRetryProtectFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosDnsRetryProtectFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalIcmpFragFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalIcmpFragFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalIcmpFragFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalIcmpFragFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalIcmpFragFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalIcmpFragFromUMC object = new GetDdosGlobalIcmpFragFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalIcmpFragFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalIcmpFragFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetSipCusProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipCusProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Sip
+ */
+ protected java.lang.String localSip;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSip() {
+ return localSip;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Sip
+ */
+ public void setSip(java.lang.String param) {
+ this.localSip = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosHttpGetSipCusProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetSipCusProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sip", xmlWriter);
+
+ if (localSip == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSip);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetSipCusProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetSipCusProV4ForUMC object = new AddDdosHttpGetSipCusProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetSipCusProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetSipCusProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sip").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSip(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalOtherFragForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalOtherFragForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for Otherenable
+ */
+ protected java.lang.String localOtherenable;
+
+ /* 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 localOtherenableTracker = false;
+
+ /**
+ * field for Otherthreshold
+ */
+ protected java.lang.String localOtherthreshold;
+
+ /* 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 localOtherthresholdTracker = false;
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isOtherenableSpecified() {
+ return localOtherenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getOtherenable() {
+ return localOtherenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Otherenable
+ */
+ public void setOtherenable(java.lang.String param) {
+ localOtherenableTracker = true;
+
+ this.localOtherenable = param;
+ }
+
+ public boolean isOtherthresholdSpecified() {
+ return localOtherthresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getOtherthreshold() {
+ return localOtherthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Otherthreshold
+ */
+ public void setOtherthreshold(java.lang.String param) {
+ localOtherthresholdTracker = true;
+
+ this.localOtherthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalOtherFragForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalOtherFragForService", xmlWriter);
+ }
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localOtherenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "otherenable", xmlWriter);
+
+ if (localOtherenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localOtherenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localOtherthresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "otherthreshold", xmlWriter);
+
+ if (localOtherthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localOtherthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalOtherFragForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalOtherFragForService object = new DdosGlobalOtherFragForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalOtherFragForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalOtherFragForService) 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "otherenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setOtherenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "otherthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setOtherthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ProtectionTargetWithStrategyForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ProtectionTargetWithStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ProtectionStrategyName
+ */
+ protected java.lang.String localProtectionStrategyName;
+
+ /* 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 localProtectionStrategyNameTracker = false;
+
+ /**
+ * field for ProtectionTargetName
+ */
+ protected java.lang.String localProtectionTargetName;
+
+ /* 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 localProtectionTargetNameTracker = false;
+
+ public boolean isProtectionStrategyNameSpecified() {
+ return localProtectionStrategyNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionStrategyName() {
+ return localProtectionStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionStrategyName
+ */
+ public void setProtectionStrategyName(java.lang.String param) {
+ localProtectionStrategyNameTracker = true;
+
+ this.localProtectionStrategyName = param;
+ }
+
+ public boolean isProtectionTargetNameSpecified() {
+ return localProtectionTargetNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionTargetName() {
+ return localProtectionTargetName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionTargetName
+ */
+ public void setProtectionTargetName(java.lang.String param) {
+ localProtectionTargetNameTracker = true;
+
+ this.localProtectionTargetName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ProtectionTargetWithStrategyForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ProtectionTargetWithStrategyForService", xmlWriter);
+ }
+ }
+
+ if (localProtectionStrategyNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionStrategyName",
+ xmlWriter);
+
+ if (localProtectionStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localProtectionTargetNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionTargetName",
+ xmlWriter);
+
+ if (localProtectionTargetName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionTargetName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ProtectionTargetWithStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ProtectionTargetWithStrategyForService object = new ProtectionTargetWithStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ProtectionTargetWithStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ProtectionTargetWithStrategyForService) 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://data.ntc.dp.com",
+ "protectionStrategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "protectionTargetName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionTargetName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalSynFloodFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalSynFloodFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected DdosGlobalSynFloodForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return DdosGlobalSynFloodForService
+ */
+ public DdosGlobalSynFloodForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(DdosGlobalSynFloodForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosGlobalSynFloodFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalSynFloodFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalSynFloodFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalSynFloodFromUMCResponse object = new GetDdosGlobalSynFloodFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalSynFloodFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalSynFloodFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(DdosGlobalSynFloodForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalTcpFragForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFragForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalTcpFragForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalTcpFragForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalTcpFragForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalTcpFragForUMCResponse object = new SetDdosGlobalTcpFragForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalTcpFragForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalTcpFragForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddFingerprintUdpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintUdpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addFingerprintUdpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addFingerprintUdpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddFingerprintUdpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddFingerprintUdpForUMCResponse object = new AddFingerprintUdpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addFingerprintUdpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddFingerprintUdpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosCCuserGroupV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosCCuserGroupV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDdosCCuserGroupV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosCCuserGroupV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosCCuserGroupV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosCCuserGroupV4ForUMCResponse object = new DelDdosCCuserGroupV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosCCuserGroupV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosCCuserGroupV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalAckPayloadForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalAckPayloadForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalAckPayloadForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalAckPayloadForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalAckPayloadForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalAckPayloadForUMCResponse object = new SetDdosGlobalAckPayloadForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalAckPayloadForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalAckPayloadForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBlackAndWhiteListFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBlackAndWhiteListFromUMC", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getAllBlackAndWhiteListFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBlackAndWhiteListFromUMC", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBlackAndWhiteListFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBlackAndWhiteListFromUMC object = new GetAllBlackAndWhiteListFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBlackAndWhiteListFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBlackAndWhiteListFromUMC) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfProtectionStrategyTemplateForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfProtectionStrategyTemplateForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ProtectionStrategyTemplateForService
+ * This was an Array!
+ */
+ protected ProtectionStrategyTemplateForService[] localProtectionStrategyTemplateForService;
+
+ /* 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 localProtectionStrategyTemplateForServiceTracker = false;
+
+ public boolean isProtectionStrategyTemplateForServiceSpecified() {
+ return localProtectionStrategyTemplateForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return ProtectionStrategyTemplateForService[]
+ */
+ public ProtectionStrategyTemplateForService[] getProtectionStrategyTemplateForService() {
+ return localProtectionStrategyTemplateForService;
+ }
+
+ /**
+ * validate the array for ProtectionStrategyTemplateForService
+ */
+ protected void validateProtectionStrategyTemplateForService(
+ ProtectionStrategyTemplateForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionStrategyTemplateForService
+ */
+ public void setProtectionStrategyTemplateForService(
+ ProtectionStrategyTemplateForService[] param) {
+ validateProtectionStrategyTemplateForService(param);
+
+ localProtectionStrategyTemplateForServiceTracker = true;
+
+ this.localProtectionStrategyTemplateForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param ProtectionStrategyTemplateForService
+ */
+ public void addProtectionStrategyTemplateForService(
+ ProtectionStrategyTemplateForService param) {
+ if (localProtectionStrategyTemplateForService == null) {
+ localProtectionStrategyTemplateForService = new ProtectionStrategyTemplateForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localProtectionStrategyTemplateForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProtectionStrategyTemplateForService);
+ list.add(param);
+ this.localProtectionStrategyTemplateForService = (ProtectionStrategyTemplateForService[]) list.toArray(new ProtectionStrategyTemplateForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfProtectionStrategyTemplateForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfProtectionStrategyTemplateForService", xmlWriter);
+ }
+ }
+
+ if (localProtectionStrategyTemplateForServiceTracker) {
+ if (localProtectionStrategyTemplateForService != null) {
+ for (int i = 0;
+ i < localProtectionStrategyTemplateForService.length;
+ i++) {
+ if (localProtectionStrategyTemplateForService[i] != null) {
+ localProtectionStrategyTemplateForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "ProtectionStrategyTemplateForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "ProtectionStrategyTemplateForService",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "ProtectionStrategyTemplateForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfProtectionStrategyTemplateForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfProtectionStrategyTemplateForService object = new ArrayOfProtectionStrategyTemplateForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfProtectionStrategyTemplateForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfProtectionStrategyTemplateForService) 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://data.ntc.dp.com",
+ "ProtectionStrategyTemplateForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(ProtectionStrategyTemplateForService.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://data.ntc.dp.com",
+ "ProtectionStrategyTemplateForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(ProtectionStrategyTemplateForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setProtectionStrategyTemplateForService((ProtectionStrategyTemplateForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ ProtectionStrategyTemplateForService.class,
+ list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetSipCusProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetSipCusProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDdosHttpGetSipCusProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetSipCusProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetSipCusProV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetSipCusProV4ForUMCResponse object = new ModDdosHttpGetSipCusProV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetSipCusProV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetSipCusProV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalTcpFlagForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpFlagForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalTcpFlagForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalTcpFlagForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalTcpFlagForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalTcpFlagForUMCResponse object = new SetDdosGlobalTcpFlagForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalTcpFlagForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalTcpFlagForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSipGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDnsSipGlobalV4ForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSipGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSipGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSipGlobalV4ForUMC object = new AddDnsSipGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSipGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSipGlobalV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDnsSipCustomV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDnsSipCustomV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDnsSipCustomV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDnsSipCustomV4ForService
+ */
+ public ArrayOfDnsSipCustomV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDnsSipCustomV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDnsSipCustomV4FromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDnsSipCustomV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDnsSipCustomV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDnsSipCustomV4FromUMCResponse object = new GetDnsSipCustomV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDnsSipCustomV4FromUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDnsSipCustomV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDnsSipCustomV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopBlackHoleStrategyForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBlackHoleStrategyForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":stopBlackHoleStrategyForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopBlackHoleStrategyForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopBlackHoleStrategyForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopBlackHoleStrategyForUMCResponse object = new StopBlackHoleStrategyForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopBlackHoleStrategyForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopBlackHoleStrategyForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalTcpStateForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalTcpStateForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalTcpStateForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalTcpStateForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalTcpStateForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalTcpStateForUMCResponse object = new SetDdosGlobalTcpStateForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalTcpStateForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalTcpStateForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDnsDomainCustomV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDnsDomainCustomV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DnsDomainCustomV4ForService
+ * This was an Array!
+ */
+ protected DnsDomainCustomV4ForService[] localDnsDomainCustomV4ForService;
+
+ /* 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 localDnsDomainCustomV4ForServiceTracker = false;
+
+ public boolean isDnsDomainCustomV4ForServiceSpecified() {
+ return localDnsDomainCustomV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DnsDomainCustomV4ForService[]
+ */
+ public DnsDomainCustomV4ForService[] getDnsDomainCustomV4ForService() {
+ return localDnsDomainCustomV4ForService;
+ }
+
+ /**
+ * validate the array for DnsDomainCustomV4ForService
+ */
+ protected void validateDnsDomainCustomV4ForService(
+ DnsDomainCustomV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsDomainCustomV4ForService
+ */
+ public void setDnsDomainCustomV4ForService(
+ DnsDomainCustomV4ForService[] param) {
+ validateDnsDomainCustomV4ForService(param);
+
+ localDnsDomainCustomV4ForServiceTracker = true;
+
+ this.localDnsDomainCustomV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DnsDomainCustomV4ForService
+ */
+ public void addDnsDomainCustomV4ForService(
+ DnsDomainCustomV4ForService param) {
+ if (localDnsDomainCustomV4ForService == null) {
+ localDnsDomainCustomV4ForService = new DnsDomainCustomV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDnsDomainCustomV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDnsDomainCustomV4ForService);
+ list.add(param);
+ this.localDnsDomainCustomV4ForService = (DnsDomainCustomV4ForService[]) list.toArray(new DnsDomainCustomV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDnsDomainCustomV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDnsDomainCustomV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDnsDomainCustomV4ForServiceTracker) {
+ if (localDnsDomainCustomV4ForService != null) {
+ for (int i = 0;
+ i < localDnsDomainCustomV4ForService.length; i++) {
+ if (localDnsDomainCustomV4ForService[i] != null) {
+ localDnsDomainCustomV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DnsDomainCustomV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsDomainCustomV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsDomainCustomV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDnsDomainCustomV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDnsDomainCustomV4ForService object = new ArrayOfDnsDomainCustomV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDnsDomainCustomV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDnsDomainCustomV4ForService) 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://data.ntc.dp.com",
+ "DnsDomainCustomV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsDomainCustomV4ForService.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://data.ntc.dp.com",
+ "DnsDomainCustomV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsDomainCustomV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDnsDomainCustomV4ForService((DnsDomainCustomV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DnsDomainCustomV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class BlackHoleManualStrategyForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = BlackHoleManualStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DetectName
+ */
+ protected java.lang.String localDetectName;
+
+ /* 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 localDetectNameTracker = false;
+
+ /**
+ * field for IpAddress
+ */
+ protected java.lang.String localIpAddress;
+
+ /* 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 localIpAddressTracker = false;
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /* 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 localPolicyNameTracker = false;
+
+ public boolean isDetectNameSpecified() {
+ return localDetectNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectName() {
+ return localDetectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectName
+ */
+ public void setDetectName(java.lang.String param) {
+ localDetectNameTracker = true;
+
+ this.localDetectName = param;
+ }
+
+ public boolean isIpAddressSpecified() {
+ return localIpAddressTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpAddress() {
+ return localIpAddress;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpAddress
+ */
+ public void setIpAddress(java.lang.String param) {
+ localIpAddressTracker = true;
+
+ this.localIpAddress = param;
+ }
+
+ public boolean isPolicyNameSpecified() {
+ return localPolicyNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ localPolicyNameTracker = true;
+
+ this.localPolicyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":BlackHoleManualStrategyForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "BlackHoleManualStrategyForService", xmlWriter);
+ }
+ }
+
+ if (localDetectNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "detectName", xmlWriter);
+
+ if (localDetectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localIpAddressTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "ipAddress", xmlWriter);
+
+ if (localIpAddress == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpAddress);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPolicyNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 BlackHoleManualStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ BlackHoleManualStrategyForService object = new BlackHoleManualStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"BlackHoleManualStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (BlackHoleManualStrategyForService) 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://data.ntc.dp.com", "detectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "ipAddress").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpAddress(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllDetectionObjectFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectionObjectFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDetectionObjectDataForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDetectionObjectDataForService
+ */
+ public ArrayOfDetectionObjectDataForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDetectionObjectDataForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllDetectionObjectFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllDetectionObjectFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllDetectionObjectFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllDetectionObjectFromUMCResponse object = new GetAllDetectionObjectFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllDetectionObjectFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllDetectionObjectFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDetectionObjectDataForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfAnomalyDetectionStrategy implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfAnomalyDetectionStrategy
+ Namespace URI = http://service.ntc.dp.com
+ Namespace Prefix = ns1
+ */
+
+ /**
+ * field for AnomalyDetectionStrategy
+ * This was an Array!
+ */
+ protected AnomalyDetectionStrategy[] localAnomalyDetectionStrategy;
+
+ /* 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 localAnomalyDetectionStrategyTracker = false;
+
+ public boolean isAnomalyDetectionStrategySpecified() {
+ return localAnomalyDetectionStrategyTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return AnomalyDetectionStrategy[]
+ */
+ public AnomalyDetectionStrategy[] getAnomalyDetectionStrategy() {
+ return localAnomalyDetectionStrategy;
+ }
+
+ /**
+ * validate the array for AnomalyDetectionStrategy
+ */
+ protected void validateAnomalyDetectionStrategy(
+ AnomalyDetectionStrategy[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AnomalyDetectionStrategy
+ */
+ public void setAnomalyDetectionStrategy(
+ AnomalyDetectionStrategy[] param) {
+ validateAnomalyDetectionStrategy(param);
+
+ localAnomalyDetectionStrategyTracker = true;
+
+ this.localAnomalyDetectionStrategy = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param AnomalyDetectionStrategy
+ */
+ public void addAnomalyDetectionStrategy(AnomalyDetectionStrategy param) {
+ if (localAnomalyDetectionStrategy == null) {
+ localAnomalyDetectionStrategy = new AnomalyDetectionStrategy[] { };
+ }
+
+ //update the setting tracker
+ localAnomalyDetectionStrategyTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localAnomalyDetectionStrategy);
+ list.add(param);
+ this.localAnomalyDetectionStrategy = (AnomalyDetectionStrategy[]) list.toArray(new AnomalyDetectionStrategy[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":ArrayOfAnomalyDetectionStrategy",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfAnomalyDetectionStrategy", xmlWriter);
+ }
+ }
+
+ if (localAnomalyDetectionStrategyTracker) {
+ if (localAnomalyDetectionStrategy != null) {
+ for (int i = 0; i < localAnomalyDetectionStrategy.length;
+ i++) {
+ if (localAnomalyDetectionStrategy[i] != null) {
+ localAnomalyDetectionStrategy[i].serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "AnomalyDetectionStrategy"), xmlWriter);
+ } else {
+ writeStartElement(null,
+ "http://service.ntc.dp.com",
+ "AnomalyDetectionStrategy", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://service.ntc.dp.com",
+ "AnomalyDetectionStrategy", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfAnomalyDetectionStrategy parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfAnomalyDetectionStrategy object = new ArrayOfAnomalyDetectionStrategy();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfAnomalyDetectionStrategy".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfAnomalyDetectionStrategy) 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://service.ntc.dp.com",
+ "AnomalyDetectionStrategy").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(AnomalyDetectionStrategy.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://service.ntc.dp.com",
+ "AnomalyDetectionStrategy").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(AnomalyDetectionStrategy.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setAnomalyDetectionStrategy((AnomalyDetectionStrategy[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ AnomalyDetectionStrategy.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddProtectionObjectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addProtectionObjectForUMC", "ns1");
+
+ /**
+ * field for DetectionDevices
+ */
+ protected java.lang.String localDetectionDevices;
+
+ /**
+ * field for CleaningDevices
+ */
+ protected java.lang.String localCleaningDevices;
+
+ /**
+ * field for ProtectionName
+ */
+ protected java.lang.String localProtectionName;
+
+ /**
+ * field for IpSegment
+ */
+ protected java.lang.String localIpSegment;
+
+ /**
+ * field for IpType
+ */
+ protected int localIpType;
+
+ /**
+ * field for CleaningType
+ */
+ protected int localCleaningType;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionDevices() {
+ return localDetectionDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionDevices
+ */
+ public void setDetectionDevices(java.lang.String param) {
+ this.localDetectionDevices = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleaningDevices() {
+ return localCleaningDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningDevices
+ */
+ public void setCleaningDevices(java.lang.String param) {
+ this.localCleaningDevices = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectionName() {
+ return localProtectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectionName
+ */
+ public void setProtectionName(java.lang.String param) {
+ this.localProtectionName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpSegment() {
+ return localIpSegment;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpSegment
+ */
+ public void setIpSegment(java.lang.String param) {
+ this.localIpSegment = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpType() {
+ return localIpType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpType
+ */
+ public void setIpType(int param) {
+ this.localIpType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCleaningType() {
+ return localCleaningType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningType
+ */
+ public void setCleaningType(int param) {
+ this.localCleaningType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addProtectionObjectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addProtectionObjectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionDevices", xmlWriter);
+
+ if (localDetectionDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionDevices);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningDevices", xmlWriter);
+
+ if (localCleaningDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleaningDevices);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectionName", xmlWriter);
+
+ if (localProtectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipSegment", xmlWriter);
+
+ if (localIpSegment == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpSegment);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipType", xmlWriter);
+
+ if (localIpType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningType", xmlWriter);
+
+ if (localCleaningType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "cleaningType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCleaningType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddProtectionObjectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddProtectionObjectForUMC object = new AddProtectionObjectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addProtectionObjectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddProtectionObjectForUMC) 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://service.ntc.dp.com", "detectionDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipSegment").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpSegment(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "cleaningType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalUdpPayloadFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpPayloadFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalUdpPayloadFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalUdpPayloadFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalUdpPayloadFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalUdpPayloadFromUMC object = new GetDdosGlobalUdpPayloadFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalUdpPayloadFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalUdpPayloadFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetFingerprintIcmpFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getFingerprintIcmpFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfFingerprintIcmpForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfFingerprintIcmpForService
+ */
+ public ArrayOfFingerprintIcmpForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfFingerprintIcmpForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getFingerprintIcmpFromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getFingerprintIcmpFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetFingerprintIcmpFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetFingerprintIcmpFromUMCResponse object = new GetFingerprintIcmpFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getFingerprintIcmpFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetFingerprintIcmpFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfFingerprintIcmpForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalUdpFragForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalUdpFragForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalUdpFragForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalUdpFragForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalUdpFragForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalUdpFragForUMCResponse object = new SetDdosGlobalUdpFragForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalUdpFragForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalUdpFragForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class SetDdosGlobalIcmpLengthForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "setDdosGlobalIcmpLengthForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":setDdosGlobalIcmpLengthForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "setDdosGlobalIcmpLengthForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 SetDdosGlobalIcmpLengthForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ SetDdosGlobalIcmpLengthForUMCResponse object = new SetDdosGlobalIcmpLengthForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"setDdosGlobalIcmpLengthForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (SetDdosGlobalIcmpLengthForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosACProtectionFromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosACProtectionFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDdosACProtectionForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDdosACProtectionForService
+ */
+ public ArrayOfDdosACProtectionForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDdosACProtectionForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosACProtectionFromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosACProtectionFromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosACProtectionFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosACProtectionFromUMCResponse object = new GetDdosACProtectionFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosACProtectionFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosACProtectionFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDdosACProtectionForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosHttpGetSipGloProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosHttpGetSipGloProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosHttpGetSipGloProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosHttpGetSipGloProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosHttpGetSipGloProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosHttpGetSipGloProV4ForUMC object = new AddDdosHttpGetSipGloProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosHttpGetSipGloProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosHttpGetSipGloProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDetectionObjectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDetectionObjectForUMC", "ns1");
+
+ /**
+ * field for DetectionDevices
+ */
+ protected java.lang.String localDetectionDevices;
+
+ /**
+ * field for CleaningDevices
+ */
+ protected java.lang.String localCleaningDevices;
+
+ /**
+ * field for DetectionName
+ */
+ protected java.lang.String localDetectionName;
+
+ /**
+ * field for IpSegment
+ */
+ protected java.lang.String localIpSegment;
+
+ /**
+ * field for IpType
+ */
+ protected int localIpType;
+
+ /**
+ * field for CleaningType
+ */
+ protected int localCleaningType;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionDevices() {
+ return localDetectionDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionDevices
+ */
+ public void setDetectionDevices(java.lang.String param) {
+ this.localDetectionDevices = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getCleaningDevices() {
+ return localCleaningDevices;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningDevices
+ */
+ public void setCleaningDevices(java.lang.String param) {
+ this.localCleaningDevices = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionName() {
+ return localDetectionName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionName
+ */
+ public void setDetectionName(java.lang.String param) {
+ this.localDetectionName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpSegment() {
+ return localIpSegment;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpSegment
+ */
+ public void setIpSegment(java.lang.String param) {
+ this.localIpSegment = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpType() {
+ return localIpType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpType
+ */
+ public void setIpType(int param) {
+ this.localIpType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCleaningType() {
+ return localCleaningType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CleaningType
+ */
+ public void setCleaningType(int param) {
+ this.localCleaningType = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDetectionObjectForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDetectionObjectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionDevices", xmlWriter);
+
+ if (localDetectionDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionDevices);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningDevices", xmlWriter);
+
+ if (localCleaningDevices == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localCleaningDevices);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionName", xmlWriter);
+
+ if (localDetectionName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipSegment", xmlWriter);
+
+ if (localIpSegment == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpSegment);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipType", xmlWriter);
+
+ if (localIpType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "cleaningType", xmlWriter);
+
+ if (localCleaningType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "cleaningType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCleaningType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDetectionObjectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDetectionObjectForUMC object = new AddDetectionObjectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDetectionObjectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDetectionObjectForUMC) 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://service.ntc.dp.com", "detectionDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningDevices").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningDevices(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectionName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipSegment").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpSegment(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "cleaningType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "cleaningType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCleaningType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllDetectDevicesResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectDevicesResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected java.lang.String localOut;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(java.lang.String param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getAllDetectDevicesResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllDetectDevicesResponse", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "out", xmlWriter);
+
+ if (localOut == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localOut);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllDetectDevicesResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllDetectDevicesResponse object = new GetAllDetectDevicesResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllDetectDevicesResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllDetectDevicesResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setOut(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDnsSipGlobalV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDnsSipGlobalV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDnsSipGlobalV4ForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDnsSipGlobalV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDnsSipGlobalV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDnsSipGlobalV4ForUMC object = new ModDnsSipGlobalV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDnsSipGlobalV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDnsSipGlobalV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDnsSecDomainCustomV4ForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDnsSecDomainCustomV4ForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DnsSecDomainCustomV4ForService
+ * This was an Array!
+ */
+ protected DnsSecDomainCustomV4ForService[] localDnsSecDomainCustomV4ForService;
+
+ /* 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 localDnsSecDomainCustomV4ForServiceTracker = false;
+
+ public boolean isDnsSecDomainCustomV4ForServiceSpecified() {
+ return localDnsSecDomainCustomV4ForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DnsSecDomainCustomV4ForService[]
+ */
+ public DnsSecDomainCustomV4ForService[] getDnsSecDomainCustomV4ForService() {
+ return localDnsSecDomainCustomV4ForService;
+ }
+
+ /**
+ * validate the array for DnsSecDomainCustomV4ForService
+ */
+ protected void validateDnsSecDomainCustomV4ForService(
+ DnsSecDomainCustomV4ForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsSecDomainCustomV4ForService
+ */
+ public void setDnsSecDomainCustomV4ForService(
+ DnsSecDomainCustomV4ForService[] param) {
+ validateDnsSecDomainCustomV4ForService(param);
+
+ localDnsSecDomainCustomV4ForServiceTracker = true;
+
+ this.localDnsSecDomainCustomV4ForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DnsSecDomainCustomV4ForService
+ */
+ public void addDnsSecDomainCustomV4ForService(
+ DnsSecDomainCustomV4ForService param) {
+ if (localDnsSecDomainCustomV4ForService == null) {
+ localDnsSecDomainCustomV4ForService = new DnsSecDomainCustomV4ForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDnsSecDomainCustomV4ForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDnsSecDomainCustomV4ForService);
+ list.add(param);
+ this.localDnsSecDomainCustomV4ForService = (DnsSecDomainCustomV4ForService[]) list.toArray(new DnsSecDomainCustomV4ForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDnsSecDomainCustomV4ForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDnsSecDomainCustomV4ForService", xmlWriter);
+ }
+ }
+
+ if (localDnsSecDomainCustomV4ForServiceTracker) {
+ if (localDnsSecDomainCustomV4ForService != null) {
+ for (int i = 0;
+ i < localDnsSecDomainCustomV4ForService.length;
+ i++) {
+ if (localDnsSecDomainCustomV4ForService[i] != null) {
+ localDnsSecDomainCustomV4ForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DnsSecDomainCustomV4ForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSecDomainCustomV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DnsSecDomainCustomV4ForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDnsSecDomainCustomV4ForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDnsSecDomainCustomV4ForService object = new ArrayOfDnsSecDomainCustomV4ForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDnsSecDomainCustomV4ForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDnsSecDomainCustomV4ForService) 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://data.ntc.dp.com",
+ "DnsSecDomainCustomV4ForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSecDomainCustomV4ForService.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://data.ntc.dp.com",
+ "DnsSecDomainCustomV4ForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DnsSecDomainCustomV4ForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDnsSecDomainCustomV4ForService((DnsSecDomainCustomV4ForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DnsSecDomainCustomV4ForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosHttpGetUriGloProV4FromUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosHttpGetUriGloProV4FromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfDdosHttpGetUriGloProV4ForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfDdosHttpGetUriGloProV4ForService
+ */
+ public ArrayOfDdosHttpGetUriGloProV4ForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfDdosHttpGetUriGloProV4ForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getDdosHttpGetUriGloProV4FromUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosHttpGetUriGloProV4FromUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosHttpGetUriGloProV4FromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosHttpGetUriGloProV4FromUMCResponse object = new GetDdosHttpGetUriGloProV4FromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosHttpGetUriGloProV4FromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosHttpGetUriGloProV4FromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfDdosHttpGetUriGloProV4ForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelFingerprintTcpForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delFingerprintTcpForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delFingerprintTcpForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delFingerprintTcpForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelFingerprintTcpForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelFingerprintTcpForUMCResponse object = new DelFingerprintTcpForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delFingerprintTcpForUMCResponse".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelFingerprintTcpForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class StopBlackHoleStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "stopBlackHoleStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":stopBlackHoleStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "stopBlackHoleStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 StopBlackHoleStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ StopBlackHoleStrategyForUMC object = new StopBlackHoleStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"stopBlackHoleStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (StopBlackHoleStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfBypassManualTractionStrategyForService
+ implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfBypassManualTractionStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for BypassManualTractionStrategyForService
+ * This was an Array!
+ */
+ protected BypassManualTractionStrategyForService[] localBypassManualTractionStrategyForService;
+
+ /* 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 localBypassManualTractionStrategyForServiceTracker = false;
+
+ public boolean isBypassManualTractionStrategyForServiceSpecified() {
+ return localBypassManualTractionStrategyForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return BypassManualTractionStrategyForService[]
+ */
+ public BypassManualTractionStrategyForService[] getBypassManualTractionStrategyForService() {
+ return localBypassManualTractionStrategyForService;
+ }
+
+ /**
+ * validate the array for BypassManualTractionStrategyForService
+ */
+ protected void validateBypassManualTractionStrategyForService(
+ BypassManualTractionStrategyForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BypassManualTractionStrategyForService
+ */
+ public void setBypassManualTractionStrategyForService(
+ BypassManualTractionStrategyForService[] param) {
+ validateBypassManualTractionStrategyForService(param);
+
+ localBypassManualTractionStrategyForServiceTracker = true;
+
+ this.localBypassManualTractionStrategyForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param BypassManualTractionStrategyForService
+ */
+ public void addBypassManualTractionStrategyForService(
+ BypassManualTractionStrategyForService param) {
+ if (localBypassManualTractionStrategyForService == null) {
+ localBypassManualTractionStrategyForService = new BypassManualTractionStrategyForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localBypassManualTractionStrategyForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localBypassManualTractionStrategyForService);
+ list.add(param);
+ this.localBypassManualTractionStrategyForService = (BypassManualTractionStrategyForService[]) list.toArray(new BypassManualTractionStrategyForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfBypassManualTractionStrategyForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfBypassManualTractionStrategyForService",
+ xmlWriter);
+ }
+ }
+
+ if (localBypassManualTractionStrategyForServiceTracker) {
+ if (localBypassManualTractionStrategyForService != null) {
+ for (int i = 0;
+ i < localBypassManualTractionStrategyForService.length;
+ i++) {
+ if (localBypassManualTractionStrategyForService[i] != null) {
+ localBypassManualTractionStrategyForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "BypassManualTractionStrategyForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BypassManualTractionStrategyForService",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BypassManualTractionStrategyForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfBypassManualTractionStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfBypassManualTractionStrategyForService object = new ArrayOfBypassManualTractionStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfBypassManualTractionStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfBypassManualTractionStrategyForService) 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://data.ntc.dp.com",
+ "BypassManualTractionStrategyForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BypassManualTractionStrategyForService.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://data.ntc.dp.com",
+ "BypassManualTractionStrategyForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BypassManualTractionStrategyForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setBypassManualTractionStrategyForService((BypassManualTractionStrategyForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ BypassManualTractionStrategyForService.class,
+ list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllDetectDevices implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllDetectDevices", "ns1");
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getAllDetectDevices", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllDetectDevices", xmlWriter);
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllDetectDevices parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllDetectDevices object = new GetAllDetectDevices();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllDetectDevices".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllDetectDevices) 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();
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDdosDnsRetryProtectForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDdosDnsRetryProtectForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * field for Alertthreshold
+ */
+ protected java.lang.String localAlertthreshold;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAlertthreshold() {
+ return localAlertthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Alertthreshold
+ */
+ public void setAlertthreshold(java.lang.String param) {
+ this.localAlertthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDdosDnsRetryProtectForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDdosDnsRetryProtectForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "alertthreshold", xmlWriter);
+
+ if (localAlertthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAlertthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDdosDnsRetryProtectForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDdosDnsRetryProtectForUMC object = new AddDdosDnsRetryProtectForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDdosDnsRetryProtectForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDdosDnsRetryProtectForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "alertthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAlertthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalUdpLengthForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalUdpLengthForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for Lengthenable
+ */
+ protected java.lang.String localLengthenable;
+
+ /* 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 localLengthenableTracker = false;
+
+ /**
+ * field for Maxlength
+ */
+ protected java.lang.String localMaxlength;
+
+ /* 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 localMaxlengthTracker = false;
+
+ /**
+ * field for Minlength
+ */
+ protected java.lang.String localMinlength;
+
+ /* 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 localMinlengthTracker = false;
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ public boolean isLengthenableSpecified() {
+ return localLengthenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getLengthenable() {
+ return localLengthenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Lengthenable
+ */
+ public void setLengthenable(java.lang.String param) {
+ localLengthenableTracker = true;
+
+ this.localLengthenable = param;
+ }
+
+ public boolean isMaxlengthSpecified() {
+ return localMaxlengthTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMaxlength() {
+ return localMaxlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Maxlength
+ */
+ public void setMaxlength(java.lang.String param) {
+ localMaxlengthTracker = true;
+
+ this.localMaxlength = param;
+ }
+
+ public boolean isMinlengthSpecified() {
+ return localMinlengthTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getMinlength() {
+ return localMinlength;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Minlength
+ */
+ public void setMinlength(java.lang.String param) {
+ localMinlengthTracker = true;
+
+ this.localMinlength = param;
+ }
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalUdpLengthForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalUdpLengthForService", xmlWriter);
+ }
+ }
+
+ if (localLengthenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "lengthenable", xmlWriter);
+
+ if (localLengthenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localLengthenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMaxlengthTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "maxlength", xmlWriter);
+
+ if (localMaxlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMaxlength);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localMinlengthTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "minlength", xmlWriter);
+
+ if (localMinlength == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localMinlength);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalUdpLengthForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalUdpLengthForService object = new DdosGlobalUdpLengthForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalUdpLengthForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalUdpLengthForService) 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://data.ntc.dp.com", "lengthenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setLengthenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "maxlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMaxlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "minlength").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setMinlength(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetUriCusProV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriCusProV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for URI
+ */
+ protected java.lang.String localURI;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getURI() {
+ return localURI;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param URI
+ */
+ public void setURI(java.lang.String param) {
+ this.localURI = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":modDdosHttpGetUriCusProV4ForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetUriCusProV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "URI", xmlWriter);
+
+ if (localURI == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localURI);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModDdosHttpGetUriCusProV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModDdosHttpGetUriCusProV4ForUMC object = new ModDdosHttpGetUriCusProV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modDdosHttpGetUriCusProV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModDdosHttpGetUriCusProV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "URI").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setURI(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddBypassManualTractionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addBypassManualTractionStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * field for ProtectName
+ */
+ protected java.lang.String localProtectName;
+
+ /**
+ * field for IpRange
+ */
+ protected java.lang.String localIpRange;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectName() {
+ return localProtectName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectName
+ */
+ public void setProtectName(java.lang.String param) {
+ this.localProtectName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getIpRange() {
+ return localIpRange;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpRange
+ */
+ public void setIpRange(java.lang.String param) {
+ this.localIpRange = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addBypassManualTractionStrategyForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addBypassManualTractionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectName", xmlWriter);
+
+ if (localProtectName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipRange", xmlWriter);
+
+ if (localIpRange == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localIpRange);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddBypassManualTractionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddBypassManualTractionStrategyForUMC object = new AddBypassManualTractionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addBypassManualTractionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddBypassManualTractionStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ipRange").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setIpRange(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddOneKeyDetection implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addOneKeyDetection", "ns1");
+
+ /**
+ * field for ProtectIp
+ */
+ protected java.lang.String localProtectIp;
+
+ /**
+ * field for AttackType
+ */
+ protected java.lang.String localAttackType;
+
+ /**
+ * field for Direction
+ */
+ protected java.lang.String localDirection;
+
+ /**
+ * field for Bandwidth
+ */
+ protected java.lang.String localBandwidth;
+
+ /**
+ * field for Business
+ */
+ protected java.lang.String localBusiness;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectIp() {
+ return localProtectIp;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ProtectIp
+ */
+ public void setProtectIp(java.lang.String param) {
+ this.localProtectIp = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAttackType() {
+ return localAttackType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AttackType
+ */
+ public void setAttackType(java.lang.String param) {
+ this.localAttackType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(java.lang.String param) {
+ this.localDirection = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getBandwidth() {
+ return localBandwidth;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Bandwidth
+ */
+ public void setBandwidth(java.lang.String param) {
+ this.localBandwidth = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getBusiness() {
+ return localBusiness;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Business
+ */
+ public void setBusiness(java.lang.String param) {
+ this.localBusiness = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addOneKeyDetection", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addOneKeyDetection", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectIp", xmlWriter);
+
+ if (localProtectIp == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectIp);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "attackType", xmlWriter);
+
+ if (localAttackType == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAttackType);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDirection);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "bandwidth", xmlWriter);
+
+ if (localBandwidth == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localBandwidth);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "business", xmlWriter);
+
+ if (localBusiness == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localBusiness);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddOneKeyDetection parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddOneKeyDetection object = new AddOneKeyDetection();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addOneKeyDetection".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddOneKeyDetection) 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://service.ntc.dp.com", "protectIp").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectIp(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "attackType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAttackType(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "bandwidth").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setBandwidth(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "business").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setBusiness(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelAnomalyDetectionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delAnomalyDetectionStrategyForUMC", "ns1");
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ this.localStrategyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delAnomalyDetectionStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delAnomalyDetectionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelAnomalyDetectionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelAnomalyDetectionStrategyForUMC object = new DelAnomalyDetectionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delAnomalyDetectionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelAnomalyDetectionStrategyForUMC) 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://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetDdosGlobalUdpFragFromUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getDdosGlobalUdpFragFromUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":getDdosGlobalUdpFragFromUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getDdosGlobalUdpFragFromUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetDdosGlobalUdpFragFromUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetDdosGlobalUdpFragFromUMC object = new GetDdosGlobalUdpFragFromUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getDdosGlobalUdpFragFromUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetDdosGlobalUdpFragFromUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfBlackHoleManualStrategyForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfBlackHoleManualStrategyForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for BlackHoleManualStrategyForService
+ * This was an Array!
+ */
+ protected BlackHoleManualStrategyForService[] localBlackHoleManualStrategyForService;
+
+ /* 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 localBlackHoleManualStrategyForServiceTracker = false;
+
+ public boolean isBlackHoleManualStrategyForServiceSpecified() {
+ return localBlackHoleManualStrategyForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return BlackHoleManualStrategyForService[]
+ */
+ public BlackHoleManualStrategyForService[] getBlackHoleManualStrategyForService() {
+ return localBlackHoleManualStrategyForService;
+ }
+
+ /**
+ * validate the array for BlackHoleManualStrategyForService
+ */
+ protected void validateBlackHoleManualStrategyForService(
+ BlackHoleManualStrategyForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BlackHoleManualStrategyForService
+ */
+ public void setBlackHoleManualStrategyForService(
+ BlackHoleManualStrategyForService[] param) {
+ validateBlackHoleManualStrategyForService(param);
+
+ localBlackHoleManualStrategyForServiceTracker = true;
+
+ this.localBlackHoleManualStrategyForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param BlackHoleManualStrategyForService
+ */
+ public void addBlackHoleManualStrategyForService(
+ BlackHoleManualStrategyForService param) {
+ if (localBlackHoleManualStrategyForService == null) {
+ localBlackHoleManualStrategyForService = new BlackHoleManualStrategyForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localBlackHoleManualStrategyForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localBlackHoleManualStrategyForService);
+ list.add(param);
+ this.localBlackHoleManualStrategyForService = (BlackHoleManualStrategyForService[]) list.toArray(new BlackHoleManualStrategyForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfBlackHoleManualStrategyForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfBlackHoleManualStrategyForService", xmlWriter);
+ }
+ }
+
+ if (localBlackHoleManualStrategyForServiceTracker) {
+ if (localBlackHoleManualStrategyForService != null) {
+ for (int i = 0;
+ i < localBlackHoleManualStrategyForService.length;
+ i++) {
+ if (localBlackHoleManualStrategyForService[i] != null) {
+ localBlackHoleManualStrategyForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "BlackHoleManualStrategyForService"),
+ xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BlackHoleManualStrategyForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "BlackHoleManualStrategyForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfBlackHoleManualStrategyForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfBlackHoleManualStrategyForService object = new ArrayOfBlackHoleManualStrategyForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfBlackHoleManualStrategyForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfBlackHoleManualStrategyForService) 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://data.ntc.dp.com",
+ "BlackHoleManualStrategyForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BlackHoleManualStrategyForService.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://data.ntc.dp.com",
+ "BlackHoleManualStrategyForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(BlackHoleManualStrategyForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setBlackHoleManualStrategyForService((BlackHoleManualStrategyForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ BlackHoleManualStrategyForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSecDomainCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSecDomainCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addDnsSecDomainCustomV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSecDomainCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSecDomainCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSecDomainCustomV4ForUMCResponse object = new AddDnsSecDomainCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSecDomainCustomV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSecDomainCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddCompleteAnomalyDetectionStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addCompleteAnomalyDetectionStrategyForUMC", "ns1");
+
+ /**
+ * field for StrategyName
+ */
+ protected java.lang.String localStrategyName;
+
+ /**
+ * field for DetectionObjName
+ */
+ protected java.lang.String localDetectionObjName;
+
+ /**
+ * field for Direction
+ */
+ protected int localDirection;
+
+ /**
+ * field for SynFloodThreshold
+ */
+ protected int localSynFloodThreshold;
+
+ /**
+ * field for SynFloodThresholdType
+ */
+ protected int localSynFloodThresholdType;
+
+ /**
+ * field for UdpFloodThreshold
+ */
+ protected int localUdpFloodThreshold;
+
+ /**
+ * field for UdpFloodThresholdType
+ */
+ protected int localUdpFloodThresholdType;
+
+ /**
+ * field for IcmpFloodThreshold
+ */
+ protected int localIcmpFloodThreshold;
+
+ /**
+ * field for IcmpFloodThresholdType
+ */
+ protected int localIcmpFloodThresholdType;
+
+ /**
+ * field for SynAckFloodThreshold
+ */
+ protected int localSynAckFloodThreshold;
+
+ /**
+ * field for SynAckFloodThresholdType
+ */
+ protected int localSynAckFloodThresholdType;
+
+ /**
+ * field for FinFloodThreshold
+ */
+ protected int localFinFloodThreshold;
+
+ /**
+ * field for FinFloodThresholdType
+ */
+ protected int localFinFloodThresholdType;
+
+ /**
+ * field for IpFragmentFloodThreshold
+ */
+ protected int localIpFragmentFloodThreshold;
+
+ /**
+ * field for IpFragmentFloodThresholdType
+ */
+ protected int localIpFragmentFloodThresholdType;
+
+ /**
+ * field for AckFloodThreshold
+ */
+ protected int localAckFloodThreshold;
+
+ /**
+ * field for AckFloodThresholdType
+ */
+ protected int localAckFloodThresholdType;
+
+ /**
+ * field for HttpFloodThreshold
+ */
+ protected int localHttpFloodThreshold;
+
+ /**
+ * field for HttpFloodThresholdType
+ */
+ protected int localHttpFloodThresholdType;
+
+ /**
+ * field for CcFloodThreshold
+ */
+ protected int localCcFloodThreshold;
+
+ /**
+ * field for CcFloodThresholdType
+ */
+ protected int localCcFloodThresholdType;
+
+ /**
+ * field for DnsFloodThreshold
+ */
+ protected int localDnsFloodThreshold;
+
+ /**
+ * field for DnsFloodThresholdType
+ */
+ protected int localDnsFloodThresholdType;
+
+ /**
+ * field for BandWidthThreshold
+ */
+ protected int localBandWidthThreshold;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getStrategyName() {
+ return localStrategyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param StrategyName
+ */
+ public void setStrategyName(java.lang.String param) {
+ this.localStrategyName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getDetectionObjName() {
+ return localDetectionObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionObjName
+ */
+ public void setDetectionObjName(java.lang.String param) {
+ this.localDetectionObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDirection() {
+ return localDirection;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Direction
+ */
+ public void setDirection(int param) {
+ this.localDirection = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynFloodThreshold() {
+ return localSynFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynFloodThreshold
+ */
+ public void setSynFloodThreshold(int param) {
+ this.localSynFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynFloodThresholdType() {
+ return localSynFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynFloodThresholdType
+ */
+ public void setSynFloodThresholdType(int param) {
+ this.localSynFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getUdpFloodThreshold() {
+ return localUdpFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param UdpFloodThreshold
+ */
+ public void setUdpFloodThreshold(int param) {
+ this.localUdpFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getUdpFloodThresholdType() {
+ return localUdpFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param UdpFloodThresholdType
+ */
+ public void setUdpFloodThresholdType(int param) {
+ this.localUdpFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIcmpFloodThreshold() {
+ return localIcmpFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IcmpFloodThreshold
+ */
+ public void setIcmpFloodThreshold(int param) {
+ this.localIcmpFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIcmpFloodThresholdType() {
+ return localIcmpFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IcmpFloodThresholdType
+ */
+ public void setIcmpFloodThresholdType(int param) {
+ this.localIcmpFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynAckFloodThreshold() {
+ return localSynAckFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynAckFloodThreshold
+ */
+ public void setSynAckFloodThreshold(int param) {
+ this.localSynAckFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getSynAckFloodThresholdType() {
+ return localSynAckFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param SynAckFloodThresholdType
+ */
+ public void setSynAckFloodThresholdType(int param) {
+ this.localSynAckFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getFinFloodThreshold() {
+ return localFinFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FinFloodThreshold
+ */
+ public void setFinFloodThreshold(int param) {
+ this.localFinFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getFinFloodThresholdType() {
+ return localFinFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param FinFloodThresholdType
+ */
+ public void setFinFloodThresholdType(int param) {
+ this.localFinFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpFragmentFloodThreshold() {
+ return localIpFragmentFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpFragmentFloodThreshold
+ */
+ public void setIpFragmentFloodThreshold(int param) {
+ this.localIpFragmentFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getIpFragmentFloodThresholdType() {
+ return localIpFragmentFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param IpFragmentFloodThresholdType
+ */
+ public void setIpFragmentFloodThresholdType(int param) {
+ this.localIpFragmentFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAckFloodThreshold() {
+ return localAckFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AckFloodThreshold
+ */
+ public void setAckFloodThreshold(int param) {
+ this.localAckFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getAckFloodThresholdType() {
+ return localAckFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param AckFloodThresholdType
+ */
+ public void setAckFloodThresholdType(int param) {
+ this.localAckFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getHttpFloodThreshold() {
+ return localHttpFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param HttpFloodThreshold
+ */
+ public void setHttpFloodThreshold(int param) {
+ this.localHttpFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getHttpFloodThresholdType() {
+ return localHttpFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param HttpFloodThresholdType
+ */
+ public void setHttpFloodThresholdType(int param) {
+ this.localHttpFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCcFloodThreshold() {
+ return localCcFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CcFloodThreshold
+ */
+ public void setCcFloodThreshold(int param) {
+ this.localCcFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getCcFloodThresholdType() {
+ return localCcFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param CcFloodThresholdType
+ */
+ public void setCcFloodThresholdType(int param) {
+ this.localCcFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDnsFloodThreshold() {
+ return localDnsFloodThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsFloodThreshold
+ */
+ public void setDnsFloodThreshold(int param) {
+ this.localDnsFloodThreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getDnsFloodThresholdType() {
+ return localDnsFloodThresholdType;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DnsFloodThresholdType
+ */
+ public void setDnsFloodThresholdType(int param) {
+ this.localDnsFloodThresholdType = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return int
+ */
+ public int getBandWidthThreshold() {
+ return localBandWidthThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param BandWidthThreshold
+ */
+ public void setBandWidthThreshold(int param) {
+ this.localBandWidthThreshold = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":addCompleteAnomalyDetectionStrategyForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addCompleteAnomalyDetectionStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "strategyName", xmlWriter);
+
+ if (localStrategyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localStrategyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "detectionObjName", xmlWriter);
+
+ if (localDetectionObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localDetectionObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "direction", xmlWriter);
+
+ if (localDirection == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "direction cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDirection));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synFloodThreshold", xmlWriter);
+
+ if (localSynFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synFloodThresholdType",
+ xmlWriter);
+
+ if (localSynFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "udpFloodThreshold", xmlWriter);
+
+ if (localUdpFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "udpFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localUdpFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "udpFloodThresholdType",
+ xmlWriter);
+
+ if (localUdpFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "udpFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localUdpFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpFloodThreshold", xmlWriter);
+
+ if (localIcmpFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "icmpFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIcmpFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "icmpFloodThresholdType",
+ xmlWriter);
+
+ if (localIcmpFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "icmpFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIcmpFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synAckFloodThreshold", xmlWriter);
+
+ if (localSynAckFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synAckFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynAckFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "synAckFloodThresholdType",
+ xmlWriter);
+
+ if (localSynAckFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "synAckFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localSynAckFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finFloodThreshold", xmlWriter);
+
+ if (localFinFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "finFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localFinFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "finFloodThresholdType",
+ xmlWriter);
+
+ if (localFinFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "finFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localFinFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipFragmentFloodThreshold",
+ xmlWriter);
+
+ if (localIpFragmentFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipFragmentFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpFragmentFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ipFragmentFloodThresholdType",
+ xmlWriter);
+
+ if (localIpFragmentFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ipFragmentFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localIpFragmentFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ackFloodThreshold", xmlWriter);
+
+ if (localAckFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ackFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAckFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ackFloodThresholdType",
+ xmlWriter);
+
+ if (localAckFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ackFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localAckFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "httpFloodThreshold", xmlWriter);
+
+ if (localHttpFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "httpFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localHttpFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "httpFloodThresholdType",
+ xmlWriter);
+
+ if (localHttpFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "httpFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localHttpFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ccFloodThreshold", xmlWriter);
+
+ if (localCcFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ccFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCcFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "ccFloodThresholdType", xmlWriter);
+
+ if (localCcFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "ccFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localCcFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dnsFloodThreshold", xmlWriter);
+
+ if (localDnsFloodThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "dnsFloodThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDnsFloodThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "dnsFloodThresholdType",
+ xmlWriter);
+
+ if (localDnsFloodThresholdType == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "dnsFloodThresholdType cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localDnsFloodThresholdType));
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "bandWidthThreshold", xmlWriter);
+
+ if (localBandWidthThreshold == java.lang.Integer.MIN_VALUE) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "bandWidthThreshold cannot be null!!");
+ } else {
+ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ localBandWidthThreshold));
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddCompleteAnomalyDetectionStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddCompleteAnomalyDetectionStrategyForUMC object = new AddCompleteAnomalyDetectionStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addCompleteAnomalyDetectionStrategyForUMC".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddCompleteAnomalyDetectionStrategyForUMC) 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://service.ntc.dp.com", "strategyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setStrategyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "detectionObjName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setDetectionObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "direction").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "direction" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDirection(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "synFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "synFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "udpFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "udpFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setUdpFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "udpFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "udpFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setUdpFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "icmpFloodThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "icmpFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "icmpFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "icmpFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIcmpFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "synAckFloodThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synAckFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynAckFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "synAckFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "synAckFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setSynAckFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "finFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "finFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setFinFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "finFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "finFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setFinFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ipFragmentFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ipFragmentFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpFragmentFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ipFragmentFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " +
+ "ipFragmentFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setIpFragmentFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ackFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ackFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAckFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ackFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ackFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setAckFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "httpFloodThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "httpFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setHttpFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "httpFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "httpFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setHttpFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "ccFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ccFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCcFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "ccFloodThresholdType").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "ccFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setCcFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "dnsFloodThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "dnsFloodThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDnsFloodThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "dnsFloodThresholdType").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "dnsFloodThresholdType" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setDnsFloodThresholdType(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com",
+ "bandWidthThreshold").equals(reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ throw new org.apache.axis2.databinding.ADBException(
+ "The element: " + "bandWidthThreshold" +
+ " cannot be null");
+ }
+
+ java.lang.String content = reader.getElementText();
+
+ object.setBandWidthThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(
+ content));
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDnsDomainCustomV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDnsDomainCustomV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDnsDomainCustomV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDnsDomainCustomV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDnsDomainCustomV4ForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDnsDomainCustomV4ForUMCResponse object = new DelDnsDomainCustomV4ForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDnsDomainCustomV4ForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDnsDomainCustomV4ForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelDdosDnsRetryProtectForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delDdosDnsRetryProtectForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":delDdosDnsRetryProtectForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delDdosDnsRetryProtectForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelDdosDnsRetryProtectForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelDdosDnsRetryProtectForUMCResponse object = new DelDdosDnsRetryProtectForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delDdosDnsRetryProtectForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelDdosDnsRetryProtectForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddFingerprintOtherForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addFingerprintOtherForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addFingerprintOtherForUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addFingerprintOtherForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddFingerprintOtherForUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddFingerprintOtherForUMCResponse object = new AddFingerprintOtherForUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addFingerprintOtherForUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddFingerprintOtherForUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class AddDnsSipCustomV4ForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "addDnsSipCustomV4ForUMC", "ns1");
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /**
+ * field for Name
+ */
+ protected java.lang.String localName;
+
+ /**
+ * field for Sipstart
+ */
+ protected java.lang.String localSipstart;
+
+ /**
+ * field for Sipend
+ */
+ protected java.lang.String localSipend;
+
+ /**
+ * field for Protectthreshold
+ */
+ protected java.lang.String localProtectthreshold;
+
+ /**
+ * field for Action
+ */
+ protected java.lang.String localAction;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ this.localObjName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getName() {
+ return localName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Name
+ */
+ public void setName(java.lang.String param) {
+ this.localName = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipstart() {
+ return localSipstart;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Sipstart
+ */
+ public void setSipstart(java.lang.String param) {
+ this.localSipstart = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getSipend() {
+ return localSipend;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Sipend
+ */
+ public void setSipend(java.lang.String param) {
+ this.localSipend = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getProtectthreshold() {
+ return localProtectthreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Protectthreshold
+ */
+ public void setProtectthreshold(java.lang.String param) {
+ this.localProtectthreshold = param;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getAction() {
+ return localAction;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Action
+ */
+ public void setAction(java.lang.String param) {
+ this.localAction = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":addDnsSipCustomV4ForUMC", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "addDnsSipCustomV4ForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "name", xmlWriter);
+
+ if (localName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sipstart", xmlWriter);
+
+ if (localSipstart == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipstart);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "sipend", xmlWriter);
+
+ if (localSipend == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localSipend);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "protectthreshold", xmlWriter);
+
+ if (localProtectthreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localProtectthreshold);
+ }
+
+ xmlWriter.writeEndElement();
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "action", xmlWriter);
+
+ if (localAction == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localAction);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 AddDnsSipCustomV4ForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ AddDnsSipCustomV4ForUMC object = new AddDnsSipCustomV4ForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"addDnsSipCustomV4ForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (AddDnsSipCustomV4ForUMC) 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://service.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "name").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sipstart").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipstart(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "sipend").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setSipend(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "protectthreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setProtectthreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement() &&
+ new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "action").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DelBlackHoleStrategyForUMC implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "delBlackHoleStrategyForUMC", "ns1");
+
+ /**
+ * field for PolicyName
+ */
+ protected java.lang.String localPolicyName;
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPolicyName() {
+ return localPolicyName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PolicyName
+ */
+ public void setPolicyName(java.lang.String param) {
+ this.localPolicyName = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":delBlackHoleStrategyForUMC",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "delBlackHoleStrategyForUMC", xmlWriter);
+ }
+ }
+
+ namespace = "http://service.ntc.dp.com";
+ writeStartElement(null, namespace, "policyName", xmlWriter);
+
+ if (localPolicyName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPolicyName);
+ }
+
+ xmlWriter.writeEndElement();
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DelBlackHoleStrategyForUMC parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DelBlackHoleStrategyForUMC object = new DelBlackHoleStrategyForUMC();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"delBlackHoleStrategyForUMC".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DelBlackHoleStrategyForUMC) 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://service.ntc.dp.com", "policyName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPolicyName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModBlackAndWhiteListProtectionResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modBlackAndWhiteListProtectionResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modBlackAndWhiteListProtectionResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modBlackAndWhiteListProtectionResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ModBlackAndWhiteListProtectionResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ModBlackAndWhiteListProtectionResponse object = new ModBlackAndWhiteListProtectionResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"modBlackAndWhiteListProtectionResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ModBlackAndWhiteListProtectionResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(NtcRequestResultInfo.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ArrayOfDetectionObjectDataForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = ArrayOfDetectionObjectDataForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for DetectionObjectDataForService
+ * This was an Array!
+ */
+ protected DetectionObjectDataForService[] localDetectionObjectDataForService;
+
+ /* 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 localDetectionObjectDataForServiceTracker = false;
+
+ public boolean isDetectionObjectDataForServiceSpecified() {
+ return localDetectionObjectDataForServiceTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return DetectionObjectDataForService[]
+ */
+ public DetectionObjectDataForService[] getDetectionObjectDataForService() {
+ return localDetectionObjectDataForService;
+ }
+
+ /**
+ * validate the array for DetectionObjectDataForService
+ */
+ protected void validateDetectionObjectDataForService(
+ DetectionObjectDataForService[] param) {
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param DetectionObjectDataForService
+ */
+ public void setDetectionObjectDataForService(
+ DetectionObjectDataForService[] param) {
+ validateDetectionObjectDataForService(param);
+
+ localDetectionObjectDataForServiceTracker = true;
+
+ this.localDetectionObjectDataForService = param;
+ }
+
+ /**
+ * Auto generated add method for the array for convenience
+ * @param param DetectionObjectDataForService
+ */
+ public void addDetectionObjectDataForService(
+ DetectionObjectDataForService param) {
+ if (localDetectionObjectDataForService == null) {
+ localDetectionObjectDataForService = new DetectionObjectDataForService[] {
+
+ };
+ }
+
+ //update the setting tracker
+ localDetectionObjectDataForServiceTracker = true;
+
+ java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDetectionObjectDataForService);
+ list.add(param);
+ this.localDetectionObjectDataForService = (DetectionObjectDataForService[]) list.toArray(new DetectionObjectDataForService[list.size()]);
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":ArrayOfDetectionObjectDataForService", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "ArrayOfDetectionObjectDataForService", xmlWriter);
+ }
+ }
+
+ if (localDetectionObjectDataForServiceTracker) {
+ if (localDetectionObjectDataForService != null) {
+ for (int i = 0;
+ i < localDetectionObjectDataForService.length;
+ i++) {
+ if (localDetectionObjectDataForService[i] != null) {
+ localDetectionObjectDataForService[i].serialize(new javax.xml.namespace.QName(
+ "http://data.ntc.dp.com",
+ "DetectionObjectDataForService"), xmlWriter);
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DetectionObjectDataForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance",
+ "nil", "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+ } else {
+ writeStartElement(null, "http://data.ntc.dp.com",
+ "DetectionObjectDataForService", xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ xmlWriter.writeEndElement();
+ }
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 ArrayOfDetectionObjectDataForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ ArrayOfDetectionObjectDataForService object = new ArrayOfDetectionObjectDataForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"ArrayOfDetectionObjectDataForService".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (ArrayOfDetectionObjectDataForService) 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://data.ntc.dp.com",
+ "DetectionObjectDataForService").equals(
+ reader.getName())) {
+ // Process the array and step past its final element's end.
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DetectionObjectDataForService.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://data.ntc.dp.com",
+ "DetectionObjectDataForService").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ list1.add(null);
+ reader.next();
+ } else {
+ list1.add(DetectionObjectDataForService.Factory.parse(
+ reader));
+ }
+ } else {
+ loopDone1 = true;
+ }
+ }
+ }
+
+ // call the converter utility to convert and set the array
+ object.setDetectionObjectDataForService((DetectionObjectDataForService[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(
+ DetectionObjectDataForService.class, list1));
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class GetAllBypassManualTractionStrategyFromUMCResponse
+ implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "getAllBypassManualTractionStrategyFromUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected ArrayOfBypassManualTractionStrategyForService localOut;
+
+ /**
+ * Auto generated getter method
+ * @return ArrayOfBypassManualTractionStrategyForService
+ */
+ public ArrayOfBypassManualTractionStrategyForService getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(ArrayOfBypassManualTractionStrategyForService param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":getAllBypassManualTractionStrategyFromUMCResponse",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "getAllBypassManualTractionStrategyFromUMCResponse",
+ xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 GetAllBypassManualTractionStrategyFromUMCResponse parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ GetAllBypassManualTractionStrategyFromUMCResponse object = new GetAllBypassManualTractionStrategyFromUMCResponse();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"getAllBypassManualTractionStrategyFromUMCResponse".equals(
+ type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (GetAllBypassManualTractionStrategyFromUMCResponse) 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://service.ntc.dp.com", "out").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if ("true".equals(nillableValue) ||
+ "1".equals(nillableValue)) {
+ object.setOut(null);
+ reader.next();
+
+ reader.next();
+ } else {
+ object.setOut(ArrayOfBypassManualTractionStrategyForService.Factory.parse(
+ reader));
+
+ reader.next();
+ }
+ } // End of if for expected property start element
+
+ else {
+ // 1 - A start element we are not expecting indicates an invalid parameter was passed
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class DdosGlobalAckPayloadForService implements org.apache.axis2.databinding.ADBBean {
+ /* This type was generated from the piece of schema that had
+ name = DdosGlobalAckPayloadForService
+ Namespace URI = http://data.ntc.dp.com
+ Namespace Prefix = ns2
+ */
+
+ /**
+ * field for ObjName
+ */
+ protected java.lang.String localObjName;
+
+ /* 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 localObjNameTracker = false;
+
+ /**
+ * field for PayloadOffsetMax
+ */
+ protected java.lang.String localPayloadOffsetMax;
+
+ /* 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 localPayloadOffsetMaxTracker = false;
+
+ /**
+ * field for PayloadOffsetMin
+ */
+ protected java.lang.String localPayloadOffsetMin;
+
+ /* 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 localPayloadOffsetMinTracker = false;
+
+ /**
+ * field for PayloadThreshold
+ */
+ protected java.lang.String localPayloadThreshold;
+
+ /* 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 localPayloadThresholdTracker = false;
+
+ /**
+ * field for Payloadcontentenable
+ */
+ protected java.lang.String localPayloadcontentenable;
+
+ /* 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 localPayloadcontentenableTracker = false;
+
+ public boolean isObjNameSpecified() {
+ return localObjNameTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getObjName() {
+ return localObjName;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param ObjName
+ */
+ public void setObjName(java.lang.String param) {
+ localObjNameTracker = true;
+
+ this.localObjName = param;
+ }
+
+ public boolean isPayloadOffsetMaxSpecified() {
+ return localPayloadOffsetMaxTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMax() {
+ return localPayloadOffsetMax;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMax
+ */
+ public void setPayloadOffsetMax(java.lang.String param) {
+ localPayloadOffsetMaxTracker = true;
+
+ this.localPayloadOffsetMax = param;
+ }
+
+ public boolean isPayloadOffsetMinSpecified() {
+ return localPayloadOffsetMinTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadOffsetMin() {
+ return localPayloadOffsetMin;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadOffsetMin
+ */
+ public void setPayloadOffsetMin(java.lang.String param) {
+ localPayloadOffsetMinTracker = true;
+
+ this.localPayloadOffsetMin = param;
+ }
+
+ public boolean isPayloadThresholdSpecified() {
+ return localPayloadThresholdTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadThreshold() {
+ return localPayloadThreshold;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param PayloadThreshold
+ */
+ public void setPayloadThreshold(java.lang.String param) {
+ localPayloadThresholdTracker = true;
+
+ this.localPayloadThreshold = param;
+ }
+
+ public boolean isPayloadcontentenableSpecified() {
+ return localPayloadcontentenableTracker;
+ }
+
+ /**
+ * Auto generated getter method
+ * @return java.lang.String
+ */
+ public java.lang.String getPayloadcontentenable() {
+ return localPayloadcontentenable;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Payloadcontentenable
+ */
+ public void setPayloadcontentenable(java.lang.String param) {
+ localPayloadcontentenableTracker = true;
+
+ this.localPayloadcontentenable = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, parentQName));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://data.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix + ":DdosGlobalAckPayloadForService",
+ xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "DdosGlobalAckPayloadForService", xmlWriter);
+ }
+ }
+
+ if (localObjNameTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "objName", xmlWriter);
+
+ if (localObjName == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localObjName);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadOffsetMaxTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMax", xmlWriter);
+
+ if (localPayloadOffsetMax == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMax);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadOffsetMinTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadOffsetMin", xmlWriter);
+
+ if (localPayloadOffsetMin == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadOffsetMin);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadThresholdTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadThreshold", xmlWriter);
+
+ if (localPayloadThreshold == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadThreshold);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ if (localPayloadcontentenableTracker) {
+ namespace = "http://data.ntc.dp.com";
+ writeStartElement(null, namespace, "payloadcontentenable",
+ xmlWriter);
+
+ if (localPayloadcontentenable == null) {
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil",
+ "1", xmlWriter);
+ } else {
+ xmlWriter.writeCharacters(localPayloadcontentenable);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://data.ntc.dp.com")) {
+ return "ns2";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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);
+
+ javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+
+ while (true) {
+ java.lang.String uri = nsContext.getNamespaceURI(prefix);
+
+ if ((uri == null) || (uri.length() == 0)) {
+ break;
+ }
+
+ prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+
+ return prefix;
+ }
+
+ /**
+ * Factory class that keeps the parse method
+ */
+ public static class Factory {
+ private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
+
+ /**
+ * 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 DdosGlobalAckPayloadForService parse(
+ javax.xml.stream.XMLStreamReader reader)
+ throws java.lang.Exception {
+ DdosGlobalAckPayloadForService object = new DdosGlobalAckPayloadForService();
+
+ int event;
+ javax.xml.namespace.QName currentQName = null;
+ java.lang.String nillableValue = null;
+ java.lang.String prefix = "";
+ java.lang.String namespaceuri = "";
+
+ try {
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ currentQName = reader.getName();
+
+ 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 (!"DdosGlobalAckPayloadForService".equals(type)) {
+ //find namespace for the prefix
+ java.lang.String nsUri = reader.getNamespaceContext()
+ .getNamespaceURI(nsPrefix);
+
+ return (DdosGlobalAckPayloadForService) 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://data.ntc.dp.com", "objName").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setObjName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadOffsetMax").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadOffsetMin").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadOffsetMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadThreshold").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadThreshold(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ 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://data.ntc.dp.com", "payloadcontentenable").equals(
+ reader.getName())) {
+ nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+ "nil");
+
+ if (!"true".equals(nillableValue) &&
+ !"1".equals(nillableValue)) {
+ java.lang.String content = reader.getElementText();
+
+ object.setPayloadcontentenable(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
+ content));
+ } else {
+ reader.getElementText(); // throw away text nodes if any.
+ }
+
+ reader.next();
+ } // End of if for expected property start element
+
+ else {
+ }
+
+ while (!reader.isStartElement() && !reader.isEndElement())
+ reader.next();
+
+ if (reader.isStartElement()) {
+ // 2 - A start element we are not expecting indicates a trailing invalid property
+ throw new org.apache.axis2.databinding.ADBException(
+ "Unexpected subelement " + reader.getName());
+ }
+ } catch (javax.xml.stream.XMLStreamException e) {
+ throw new java.lang.Exception(e);
+ }
+
+ return object;
+ }
+ } //end of factory class
+ }
+
+ public static class ModDdosHttpGetUriGloProV4ForUMCResponse implements org.apache.axis2.databinding.ADBBean {
+ public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://service.ntc.dp.com",
+ "modDdosHttpGetUriGloProV4ForUMCResponse", "ns1");
+
+ /**
+ * field for Out
+ */
+ protected NtcRequestResultInfo localOut;
+
+ /**
+ * Auto generated getter method
+ * @return NtcRequestResultInfo
+ */
+ public NtcRequestResultInfo getOut() {
+ return localOut;
+ }
+
+ /**
+ * Auto generated setter method
+ * @param param Out
+ */
+ public void setOut(NtcRequestResultInfo param) {
+ this.localOut = param;
+ }
+
+ /**
+ *
+ * @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 {
+ return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
+ this, MY_QNAME));
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException,
+ org.apache.axis2.databinding.ADBException {
+ serialize(parentQName, xmlWriter, false);
+ }
+
+ public void serialize(final javax.xml.namespace.QName parentQName,
+ javax.xml.stream.XMLStreamWriter 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();
+ writeStartElement(prefix, namespace, parentQName.getLocalPart(),
+ xmlWriter);
+
+ if (serializeType) {
+ java.lang.String namespacePrefix = registerPrefix(xmlWriter,
+ "http://service.ntc.dp.com");
+
+ if ((namespacePrefix != null) &&
+ (namespacePrefix.trim().length() > 0)) {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ namespacePrefix +
+ ":modDdosHttpGetUriGloProV4ForUMCResponse", xmlWriter);
+ } else {
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "type",
+ "modDdosHttpGetUriGloProV4ForUMCResponse", xmlWriter);
+ }
+ }
+
+ if (localOut == null) {
+ writeStartElement(null, "http://service.ntc.dp.com", "out",
+ xmlWriter);
+
+ // write the nil attribute
+ writeAttribute("xsi",
+ "http://www.w3.org/2001/XMLSchema-instance", "nil", "1",
+ xmlWriter);
+ xmlWriter.writeEndElement();
+ } else {
+ localOut.serialize(new javax.xml.namespace.QName(
+ "http://service.ntc.dp.com", "out"), xmlWriter);
+ }
+
+ xmlWriter.writeEndElement();
+ }
+
+ private static java.lang.String generatePrefix(
+ java.lang.String namespace) {
+ if (namespace.equals("http://service.ntc.dp.com")) {
+ return "ns1";
+ }
+
+ return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+ }
+
+ /**
+ * Utility method to write an element start tag.
+ */
+ private void writeStartElement(java.lang.String prefix,
+ java.lang.String namespace, java.lang.String localPart,
+ javax.xml.stream.XMLStreamWriter xmlWriter)
+ throws javax.xml.stream.XMLStreamException {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
+ } else {
+ if (namespace.length() == 0) {
+ prefix = "";
+ } else if (prefix == null) {
+ prefix = generatePrefix(namespace);
+ }
+
+ xmlWriter.writeStartElement(prefix, localPart, namespace);
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ }
+ }
+
+ /**
+ * 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 {
+ java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+
+ if (writerPrefix != null) {
+ xmlWriter.writeAttribute(writerPrefix, namespace, attName,
+ attValue);
+ } else {
+ xmlWriter.writeNamespace(prefix, namespace);
+ xmlWriter.setPrefix(prefix, namespace);
+ xmlWriter.writeAttribute(prefix, 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 {
+ xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
+ 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(attributePrefix, 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 {
+